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 | 31 |
Tags
- Alamofire
- m4
- M3
- aws database
- well architected
- service key is not registered error
- api service key error
- Alamofire.AFError.session Task Failed(error: Error Domain=NSURLErrorDomain Code=-1022
- Apple Silicon
- Arm
- Docker Engine
- swiftm
- ssh-remote
- Swift
- 6pillar
- Linux
- ubuntu
- NSURLErrorDomain Code=-1022
- ubuntu-desktop
- swiftui keyboard dismiss
- sudo docker
- 가상머신
- SwiftUI
- 성능효율성
- perfomance efficiency
- codingkey
- AppTransportSecurity
- M2
- swiftui keyboard
- M1
Archives
- Today
- Total
목록swiftm (1)
behan의 개인적인 기술 블로그

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 < ..
iOS/Swift
2022. 1. 11. 19:14