일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- Method
- Git
- 스위프트
- Protocol
- String
- extension
- instance
- url
- struct
- 디자인패턴
- type
- Unicode
- IOS
- 코딩테스트
- init
- property
- Xcode
- optional
- UIKit
- delegate
- interpace
- Swift
- tuist
- Class
- 이니셜라이저
- initializer
- Terminal
- Foundation
- enum
- initalizer
Archives
- Today
- Total
목록caseInsensitive (1)
아리의 iOS 탐구생활

Apple Developer Documentation developer.apple.com 🔍 CaseInsensitive Option 스위프트에서는 대소문자를 구분하는데, 해당 옵션을 추가하면 대소문자 구분을 없앨 수 있다. "A" == "a" // false "A".caseInsensitiveCompare("a") == .orderedSame // true "A".compare("a", options: [.caseInsensitive]) == .orderedSame // true /* 원래 해당 옵션의 풀네임은 NSString.CompareOptions.caseInsensitive 이건데, 스위프트는 타입추론이 가능하여 보다 짧게 입력하여 편리하게 사용할 수 있다. */ 🔍 Literal Option ..
Swift/자료구조
2021. 8. 24. 19:38