Post

Replies

Boosts

Views

Activity

Reply to No containerBackground content on Widget in iOS 18 tinted home screen style
The following code is the minimal version to address this problem. This code gets called in side the WidgetBundle. struct SimpleWidgetView: View { var body: some View { // Text of other content. This is visible in tinted version Text("Widget containing tekst") .containerBackground(for: .widget) { // Image background. Not visible in tinted config, but visible in Light and Dark Image("widget_background") .resizable() .scaledToFill() } } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jun ’24
Reply to LockedCameraCapture - Lock Screen Camera Capture UI Question
After using the code provided about I got the same experience that the control widget opens the app. When I tried adding it on the lock screen of the simulator it still opens the app. Then I tried it on my iPhone. Placing the button in de control center will still open the app. But using it from the lockscreen opens the camera of included in de Locked Camera Capture Extension
Jun ’24