Post

Replies

Boosts

Views

Activity

Reply to How to Render a WKWebView() to png-file (iOS16)?
From the documentation: https://developer.apple.com/documentation/swiftui/imagerenderer "ImageRenderer output only includes views that SwiftUI renders, such as text, images, shapes, and composite views of these types. It does not render views provided by native platform frameworks (AppKit and UIKit) such as web views, media players, and some controls. For these views, ImageRenderer displays a placeholder image, similar to the behavior of drawingGroup(opaque:colorMode:)."
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Nov ’23
Reply to How to Render a WKWebView() to png-file (iOS16)?
I am still not giving up to use the ImageRenderer, but what was working for me, was the webview's async takeSnapshot: e.g. import WebKit public class TakeScreenShotCommand { var screenShot: UIImage? func takeScreenShot(_ webview: WKWebView) { webview.takeSnapshot(with: nil, completionHandler: { image, error in if let image = image { self.screenShot = image } }) } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Nov ’23
Reply to Not able to enroll in Apple developer program
These are the prerequisities as September/2023 An iPhone or iPad with Touch ID, Face ID, or passcode enabled, or a Mac with the T2 Security Chip. You must use the same device for the entire enrollment process. An Apple ID with two-factor authentication turned on. Your Apple ID information must be valid and up to date — including, but not limited to, your first name (given name), last name (family name), address, phone number, trusted phone number, and trusted devices. The latest version of the Apple Developer app installed on your device. To sign in to iCloud on your device. I had to add a new iCloud account (using my Apple ID) to my device, logged out from the Apple Developer app. Killing the app is not enough. Not it works.
Sep ’23