반응형
How do you prevent SwiftUI from autoresizing view when keyboard appears
I have a TextField in my iOS app, and it is positioned such that I don't want it to move when the keyboard appears. However, the view is autoresizing when the keyboard appears. Is there a way to pr...
stackoverflow.com
parent view에 .ignoresSafeArea(.keyboard) 를 써줌!
728x90
반응형
'Computer Science > swift 뽀개기 - 참고 사이트 저장소' 카테고리의 다른 글
| [swift] texfield에 길이제한두기 (0) | 2021.07.31 |
|---|---|
| [swift] debugging을 위해 view에서 print문 찍는법 (0) | 2021.07.31 |
| [swift] @State, @ObservedObject, @EnvironmentObject 차이!! (+@Binding) (0) | 2021.07.31 |
| [swift] textfield placeholder에 색깔 넣기 (0) | 2021.07.31 |
| [swift] DragGesture를 이용하여 Tap 기능 처럼 사용하는 방법 (0) | 2021.06.25 |
| [swift] GeometryReader (0) | 2021.06.24 |
| [swift] xcode가 내 기기를 못 찾을 때 (0) | 2021.06.24 |
| [swift] AVPlayer (0) | 2021.06.23 |