[Fixed]Fix bug of example.
Screenshotable view for SwiftUI
@State private var sharedImage: UIImage? @State private var shotting = false ... // The view want to take screenshot var content: some View { ... } ScreenshotableView(shotting: self.$shotting, completed: { screenshot in self.sharedImage = screenshot self.shotting = false }) { self.content }
©Copyright 2023 CCF 开源发展委员会 Powered by Trustie& IntelliDE 京ICP备13000930号
ScreenshotableView
Screenshotable view for SwiftUI
How to use?