iOS ARM32 question: The constructor of `UIColor` e...
# kotlin-native
j
iOS ARM32 question: The constructor of
UIColor
expects `CGFloat`s (Float) on arm32 and `CGDouble`s (Double) on arm64 / x64. I'd like to use the same source set and unfortunately
.convert()
doesn't exist for Float / Double. Are different source sets the only way to tackle this?
j
It is how we did it, however, we later realized that none of our users used ARM32 anymore, so we scrapped it entirely. As you probably already know, it is no longer supported on appstore
j
Source? afaik when you still want to support iOS 10 then you'd also need to deliver arm32 binaries
and for the time being we have to support iOS 10
o
it shall be fixed by supporting
convert
on thos types, but we not there yet. Shalln’t be too hard, we would accept the patch.
👍 1
j
yeah @Jonas Bark I was essentially refering to this: https://developer.apple.com/documentation/uikit/app_and_environment/updating_your_app_from_32-bit_to_64-bit_architecture But as you say, this is for iOS 11 and later, where it is a requirement
s
The last 32-bit phones Apple released were the iPhone 5 and 5c. The 5c was discontinued worldwide in March 2016 and March 2017 in India. Depending on your userbase it may be worth supporting those old phones or it may not. Most people with old phones tend to use them just as phones and don't download apps.
j
If it were me I'd drop them immediately - but it's the customers decision