[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
- IOS
- np-hard
- actor
- swift delegate
- WWDC
- Git
- Swift
- 제이슨 파싱
- np-complete
- swift array
- WKWebView
- FLUTTER
- swift sort
- ios 13
- 회고
- SwiftUI
- github
- Accessibility
- 스위프트
- Xcode
- Combine
- fastlane
- 스위프트 문법
- UIBezierPath
- swift3
- iOS delegate
- swift tutorial
- 피아노
- WidgetKit
- swift 공부
글 보관함
반응형
- Total
- Today
- Yesterday