일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
- codingkey
- M3
- M1
- sudo docker
- ubuntu
- Apple Silicon
- swiftui keyboard
- service key is not registered error
- perfomance efficiency
- well architected
- SwiftUI
- Docker Engine
- Linux
- aws database
- swiftm
- 성능효율성
- 가상머신
- api service key error
- Alamofire
- m4
- ssh-remote
- NSURLErrorDomain Code=-1022
- AppTransportSecurity
- 6pillar
- Arm
- ubuntu-desktop
- swiftui keyboard dismiss
- Swift
- Alamofire.AFError.session Task Failed(error: Error Domain=NSURLErrorDomain Code=-1022
- M2
- Today
- Total
목록SwiftUI (3)
behan의 개인적인 기술 블로그
#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 숨기기 가능
SQLite를 사용하면 별다른 설치 없이 내부적으로 사용이 가능하다 import SQLite3 class DBHelper { static let shared = DBHelper() var db: OpaquePointer? var path = "mySqlite.sqlite" init() { self.db = createDB() } func createDB() -> OpaquePointer? { var db: OpaquePointer? = nil do { let filePath = try FileManager.default.url(for: .documentDirectory, in: .userDomainMask, appropriateFor: nil, create: false).appendingPathCompo..

swift sort()를 사용한 struct 정렬 방법 [구조체] struct CommonCode { let sgId: String let sgName: String } var commoncodes: [CommonCode] = [...] - sort() v.s sorted() sort()는 적용되는 배열 자체를 정렬 sorted()는 정렬된 배열을 리턴(본 배열은 그대로) 사용법 sortedArray = commoncodes.sorted { lhs, rhs in return lhs.sgId < rhs.sgId } commoncodes.sort { lhs, rhs in return lhs.sgId < rhs.sgId } or sortedArray = commoncodes.sorted { $0.sgId < ..