[iOS][Rendering] Honor iconSize in iOS
See original GitHub issuePlatform
- iOS
Author or host
Host
Version of SDK
2.4.6
Details
There doesn’t appear to be any way to control the size of an icon in a button/action. E.g.:
{
"type" : "AdaptiveCard",
"$schema" : "http://adaptivecards.io/schemas/adaptive-card.json",
"version" : "1.3",
"body" : [
{
"type" : "Container",
"items" : [
{
"type" : "ActionSet",
"height": "stretch",
"actions" : [
{
"type" : "Action.Submit",
"iconUrl" : "bundle://host/big-heart.png"
}
]
}
]
}
]
}
Results in this card:
The actual size of “big-heart.png” is 44x44px. The button is huge (because I set the height to stretch
) but the rendered size of the icon is just 27x26pt.
I tried adding ActionsConfig.iconSize
to the host config but that had no effect. Neither did ActionsConfig.iconPlacement
.
Our card designs often include buttons with an icon and no title, and these icons need to appear at a specific size to match the design.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
App icons | Apple Developer Documentation
iOS, iPadOS app icon sizes. You need to provide a large version of your app icon, measuring 1024x1024 pixels, to display in the...
Read more >App Icon Size and Best Practices for iPhone and Android
In this article, I will walk you through the app icon size standard used for Apple App Store, Google Play and Huawei App...
Read more >What app icon sizes are required?
You need to bundle two icons: 120 x 120 (60@2x) and 180 x 180 (60@3x). You need one iTunes artwork: 1024 x 1024,...
Read more >iPhone icon size - xcode
iOS 7+ ; iPhone and iPod touch. Both of these sizes are required: 120px · 60px ; iPad. Both of these sizes are...
Read more >How to change icon style in Honor X8 - YouTube
Not to be confused with 2018's Honor 8X, this is the Honor X8. While the smartphone's name change is subtle, it brings with...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
FWIW we ended up making a custom button type to handle this which replaces Actions/ActionSets entirely.
Decision (from #5567) was to match JS behavior:
iconSize
should always be honored (it will no longer be sized to match text height). Default also changed to 16.