목록Apple (3)
Where who wants to meet someone
Data Essentials in SwiftUI - WWDC20 - Videos - Apple Developer Data is a complex part of any app, but SwiftUI makes it easy to ensure a smooth, data-driven experience from prototyping to production... developer.apple.com - SwiftUI 앱 내에서 데이터 흐름을 시작하는 방법, State / Binding 키워드 다루는 영상 Getting started Data for a new view - view가 작업을 수행하려면 어떤 데이터가 필요한가? (예시: 표지, 서명, 저자, 진행률) - view가 해당 데이터를 어떻게 조작하는가? ..
Picker | Apple Developer Documentation A control for selecting from a set of mutually exclusive values. developer.apple.com - 앱에서 Picker를 통해 선택지를 제공해야 할 필요가 있어 찾아보게 되었고, 새로운 지식이기 때문에 정리를 해보려 한다. enum Flavor: String, CaseIterable, Identifiable { case chocolate, vanilla, strawberry var id: Self { self } } @State private var selectedFlavor: Flavor = .chocolate 예제에서는 Picker에서 제공할 항목들을 enum의 각 case로 ..
ARC in Swift: Basics and beyond - WWDC21 - Videos - Apple Developer Learn about the basics of object lifetimes and ARC in Swift. Dive deep into what language features make object lifetimes observable,... developer.apple.com Swift는 Struct와 Enum같은 값 유형을 제공 의도하지 않은 공유의 위험을 피하기 위해 가능하면 참조 유형보다는 값 유형을 사용하는 것이 좋음 Class는 Swift의 참조 유형이며, 이를 사용하기로 결정하면 Swift는 자동 참조 카운팅(ARC, Automatic Reference Counting)을..