SwiftUI: Why is the height of proxy.safeAreaInsets.bottom equal to keyboardHeight?
问题 So the safeAreaInset.bottom on the iPhone 11 Pro Max is 34.0, but when the keyboard is open, it changes the safeAreaInset.bottom to the height of the keyboard (346.0 points). Is there any way to access the safeAreaInset.bottom value (34.0) when the keyboard is open? For reference, my content view has a geometry reader in it: var body: some View { GeometryReader { proxy in //I pass in proxy into views in here and then access the safe area with proxy.safeAreaInsets.bottom } } I also need this