SwiftUI, several problems, Color Picker and KeyBoard(?) Snapshot.

Hello! I'm new with Swiftui but I know how to use forum search and google search... so that mean I didn't find anything related to my problems.

First my issue is

Code Block
Snapshotting a view (0x145041a00, UIKeyboardImpl) that has not been rendered at least once requires afterScreenUpdates:YES.
[Snapshotting] Snapshotting a view (0x14427e000, UIKeyboardImpl) that is not in a visible window requires afterScreenUpdates:YES.


this error happens only if I call a keyboard in my app, and close the app to background. After open app again I see this report in a bug area. Even if I change tab in the app and close it to background I see these errors, but if I terminate app, and open it again w/o calling the keyboard, and close/background -> open I don't see these errors.

Would be very informative if anyone can answer why I need "Snapshotting a view" and how to solve this problem?

Second issue is going with Color Picker.

First of all I generate random color with

Code Block
@State private var randomColor: Color = Color(red: .random(in: 0.2...0.8), green: .random(in: 0.2...0.6),blue: .random(in: 0.2...1))
ColorPicker("", selection: $randomColor)
.labelsHidden()
.padding(.all)
.onChange(of: randomColor) { newValue in getColorsFromPicker(pickerColor: newValue) }


then when I tap on Color Picker and ONLY CLOSE(didn't change color) I see this error:

Code Block
(null)] [com.apple.UIKit.ColorPicker(1.0)] Connection to plugin interrupted while in use.


when I tap second time I receive this error:

Code Block
Error acquiring assertion: <Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist}>


I checked [swiftui] dismiss color picker, but I haven't any problem with dismiss, just see this report in a bug area.

How deal with that?


ps. sorry for my bad english.

If I submit the app to App Store, w/o solving these problems would it be accepted or not?

thanks in advance!
SwiftUI, several problems, Color Picker and KeyBoard(?) Snapshot.
 
 
Q