question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[iOS][Rendering] Honor iconSize in iOS

See original GitHub issue

Platform

  • 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:

image

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:open
  • Created 3 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jscalocommented, Jan 26, 2021

FWIW we ended up making a custom button type to handle this which replaces Actions/ActionSets entirely.

0reactions
golddovecommented, Apr 29, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found