Currently I still got an issue that when you press Use Photo button after taking the image, the Capture Extension crashes or freezes
Post
Replies
Boosts
Views
Activity
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()
}
}
}
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