Post

Replies

Boosts

Views

Activity

Reply to Black text on white button on iOS 18 Accented Home Screen Widget
I'm seeing similar issues, I can't get general colours to be forced to be what I want, even when just wanting black vs white... It's changing gradients and backgrounds of images that are expecting black always, so that content on top can be white and visible, but instead get forced white meaning it's not visible... I thought I could get away with using something like widgetAccentable(false) but it doesn't do anything: // this gets forced white... Color.black // this does nothing .widgetAccentable(false) .overlay( Image(uiImage: image) .resizable() .widgetAccentedRenderingMode(.fullColor) .aspectRatio(contentMode: .fit) .clipped() .padding(padding) )
Oct ’24
Reply to How to fetch an image in the Live Activity (ActivityKit)
When storing in an app group as explained by BrandonK212, https://developer.apple.com/forums/thread/716902?answerId=731691022#731691022, it seems like using a combination of Data(contentsOf:) with a file URL and UIImage(data:) worked for me, where UIImage(contentsOfFile:) did not. Related thread that suggests Apple recommends the app group approach at least: https://developer.apple.com/forums/thread/715170
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Nov ’22