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
- borderRadius
- platformexception
- datetime
- enum
- changenotifierprovider
- permission
- Snapshot
- Stream
- consumer
- reference
- swift 문법
- setstate
- ListView.builder
- divider
- globalkey
- user
- provider
- multiprovider
- Navigator
- transform
- snackbar
- changenotifier
- 문법
- Firebase
- switch
- controller
- Swift
- signout
- runTransaction
- Camera
Archives
- Today
- Total
목록Protocol (1)
코딩하는 제리
[Swift] protocol
- 클래스, 구조체, 열거형에 프로토콜을 채택 할 수 있음. class 클래스명: 부모 클래스명, 프로토콜명 {} class 클래스명: 부모 클래스명, 프로토콜명1, 프로토콜명2 {} class 클래스명: 프로토콜명 {} class 클래스명: 프로토콜명1, 프로토콜명2 {} protocol 프로토콜명 { 프로퍼티명 메서드선언// 메서드는 선언만. } protocol 프로토콜명: 다른프로토콜1, 다른프로토콜2 { // 다중 상속 가능 } protocol SomeProtocol { var x: Int { get set }// 읽기/쓰기 가능 var y: Int { get }// 읽기 전용 static var tx: Int { get set } static func typeMethod()// 메서드는 선언만...
iOS/SwiftUI
2022. 1. 12. 10:55