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 |
Tags
- combine
- Refactoring
- swift documentation
- Clean Code
- map
- tableView
- UITextView
- swiftUI
- uitableview
- 리팩토링
- 클린 코드
- 스위프트
- MVVM
- Human interface guide
- Xcode
- Protocol
- collectionview
- ios
- HIG
- 리펙터링
- SWIFT
- rxswift
- RxCocoa
- clean architecture
- 리펙토링
- Observable
- uiscrollview
- 애니메이션
- ribs
- UICollectionView
Archives
- Today
- Total
김종권의 iOS 앱 개발 알아가기
[iOS - swift] 예약어를 변수로 사용 (backtic, `기호) 본문
예약어란?
- 특정 기능을 미리 예약되어 있는 단어
- switch문에서 case에 class, var, let을 그냥 사용하면 예약어로 인식하기 때문에 컴파일 에러 발생
Backtic
- Backtic 기호인 ``를 사용하여 예약어를 사용
enum Sample {
case `class`
case `var`
case `let`
}
'swift 5 문법' 카테고리의 다른 글
[iOS - swift] Async, Await 사용 방법 (0) | 2022.05.01 |
---|---|
[iOS - swift] (프로퍼티) Stored property vs Computed property vs Type property (0) | 2021.06.16 |
[iOS - swift] (초기화) designated init vs convenience init (0) | 2021.06.16 |
[swift] 19. struct vs. class (0) | 2020.10.01 |
[swift] 18. 초기화(initialize) 심화 개념 (0) | 2020.10.01 |
Comments