Skip to content

Hide keyboard with buttons in SwiftUI


It is a way to hide the keyboard with a button in SwiftUI. It is realized by extending UIApplication.


How to lower (hide) the keyboard in SwiftUI

  1. Create a sequential numbered array in Swift
  2. Detect keyboard height and appearance with SwiftUI
  3. Input a multi-line string with SwiftUI
  4. Show picker from bottom with SwiftUI
  5. Using UIImagePickerController with SwiftUI
  6. Do not change the color of the Image in the Button with SwiftUI
  7. I tried all the ModalPresentationStyle of iOS 13