简体   繁体   中英

iOS13 Dark Mode Keyboard isSecureTextEntry causes Snapshot Error

I have 3 textfields for name, email and password. The password textfield has isSecureTextEntry = true which causes this weird message output when I switch typing from the password textfield to one of the other textfields:

Snapshotting] Snapshotting a view (0x11c510ff0, _UIReplicantView) that has not been rendered at least once requires afterScreenUpdates:YES.

This only happens in dark mode. I am testing on a physical device. iPhone 8+. When I switch to light mode this message doesn't output. I am trying to understand what causes this message and what it means.

Using

overrideUserInterfaceStyle = .light

caused the output to go away. Still confused as to why this happens on dark mode.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM