[Swift 5.7] if let shorthand
안녕하세요 :) Zedd입니다. Swift 5.7 변경사항 중 하나인 if let shorthand를 보려고 합니다. if let foo = foo { .. } 를 사용하여 기존 optional variable를 "숨기는" optional binding은 굉장히 일반적인 패턴인데요. if let foo = foo 같이 식별자를 두번 써줘야해서 let someLengthyVariableName: Foo? = ... let anotherImportantVariable: Bar? = ... if let someLengthyVariableName = someLengthyVariableName, let anotherImportantVariable = anotherImportantVariable { ... } 이렇..
Swift
2022. 7. 9. 17:04
TAG
- swift array
- ios 13
- fastlane
- Git
- 스위프트
- UIBezierPath
- SwiftUI
- Xcode
- swift 공부
- iOS delegate
- IOS
- 제이슨 파싱
- Accessibility
- np-hard
- WWDC
- github
- actor
- WKWebView
- FLUTTER
- 스위프트 문법
- swift delegate
- swift sort
- 회고
- Combine
- 피아노
- Swift
- np-complete
- WidgetKit
- swift3
- swift tutorial
글 보관함
반응형
- Total
- Today
- Yesterday