Posts

Post not yet marked as solved
20 Replies
3.6k Views
Code to reproduce: struct CrashView: View {   var body: some View {           ScrollView {       LazyVStack {         ForEach(0...100, id: \.self) { i in           LazyVGrid(columns: Array(repeating: .init(.fixed(100)), count: 3), content: {             ForEach(0...20, id: \.self) { i in               Color.red.opacity(Double(i + 1) / 20).frame(height: 300)             }           })         }       }     }         } } Important: it crashes on iOS 16.1 !!! We have 21 grid item (3 item and 7 full lines) for every LazyVStack item. Scroll it until 5 LazyVStack item. Start scrolling to top. It blinks and show incorrect count: you see that it shows 1 item in line, but it is impossible. If you continue scrolling app crashes.
Posted
by jnis.
Last updated
.
Post not yet marked as solved
1 Replies
2k Views
I need take screenshot of WebView while app in Background.But on iOS13 method "takeSnapshotWithConfiguration:completionHandler:" of WKWebView does not work. completionHandler never fire when app does background task.This works well on iOS12. Also it works on iOS13 while app in foreground.Reproduce: see demo project to reproduce https://github.com/Jnis/WebView-Snapshot. Also see videos there.Expected: takeSnapshotWithConfiguration:completionHandler call completionHandler with image while app is in backgroundActual result:[self.wkwebView takeSnapshotWithConfiguration:configuration completionHandler:^(UIImage * _Nullable snapshotImage, NSError * _Nullable error) { // this never call on iOS13 while app in background. But iOS12 works well.}];Thank you!
Posted
by jnis.
Last updated
.