Post

Replies

Boosts

Views

Activity

Comment on Xcode 16: SwiftUI plain Button & UIImageView not working
Also to add that I did get a response back from the feedback assistant claiming it was expected behaviour because we're wrapping a UIImageView that has isUserInteractionEnabled default false. Setting it to true does fix it but that does not explain why .plain is broken compared to .borderless or why it was fixed after finding it in the Xcode 16.0 beta... Button styles should behave consistently.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Mar ’25
Comment on Xcode 16: SwiftUI plain Button & UIImageView not working
Also to add that I did get a response back from the feedback assistant claiming it was expected behaviour because we're wrapping a UIImageView that has isUserInteractionEnabled default false. Setting it to true does fix it but that does not explain why .plain is broken compared to .borderless or why it was fixed after finding it in the Xcode 16.0 beta... Button styles should behave consistently.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’25
Comment on Xcode 16: SwiftUI plain Button & UIImageView not working
Frustratingly I can't edit this comment but it regressed with the iOS 18.3 release (didn't catch this in simulators because there weren't any). But is present in iOS 18.4. Interestingly this is only an issue using Xcode 16 (so would be linked to the iOS 18 SDK), building with Xcode 15 doesn't introduce the issue.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’25