Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
Tags
- SwiftUI
- swiftm
- api service key error
- sorted()
- App Transport Security
- 공공데이터
- uikit
- NSURLErrorDomain Code=-1022
- sort()
- sqlite3
- swiftui keyboard dismiss
- SERVICE_KEY_IS_NOT_REGISTERED_ERROR
- swiftui keyboard
- AppTransportSecurity
- sqlite
- json
- Swift
- service key is not registered error
- Alamofire
- Alamofire.AFError.session Task Failed(error: Error Domain=NSURLErrorDomain Code=-1022
- codingkey
- struct
- Array
Archives
- Today
- Total
목록swiftui keyboard dismiss (1)
behan의 개인적인 기술 블로그
SwiftUI) textfield 작성 후 버튼 클릭시 keyboard dismiss(hide, 숨기기)
#if canImport(UIKit) extension View { func hideKeyboard() { UIApplication.shared.sendAction(#selector(UIResponder.resignFirstResponder), to: nil, from: nil, for: nil) } } #endif 생성 후 Button { locationSearchViewModel.fetchLocationSubject.send(location) hideKeyboard() } label: { Text("Search") } 버튼 action에 추가하면 keyboard 숨기기 가능
iOS/SwiftUI
2022. 4. 4. 21:39