일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- flutter #state # stateful #stateless
- ImageSlider
- 코딩테스트
- xcode
- Masil
- 새싹후기
- 프로젝트회고
- 알고리즘
- 청년취업사관학교후기
- MVVM
- colorofdays
- 오늘의 색상
- WidgetTree
- UIKit
- 프로그래머스
- IOS
- stanford
- 조건문
- GIT
- CS193p
- 백준
- 스위프트
- flutter
- process
- UserDefault
- xml
- Swift
- collectionView
- SwiftUI
- 스터디
Archives
- Today
- Total
목록protocol (1)
개발을 시작하는 이야기

강의 보기 : Youtube :: Stanford Protocol 특정 기능을 수행에 필요한 필수적인 속성이나 메서드를 정의한다. protocol Moveable { func move(by: Int) var hasMoved: Bool { get } var distanceFromStart: Int { get set } } struct PortableThing: Moveable { func move(by: Int) { print("\(by)만큼 움직입니다") } var hasMoved var distanceFromStart } 프로토콜은 또 다른 프로토콜을 따를 수 있다. protocol Moveable { var hasMoved: Bool { get } } protocol Messagable: Moveab..
개발 이야기/Swift
2022. 4. 18. 18:23