기본 콘텐츠로 건너뛰기

100 Days of SwiftUI Cheat Sheet

[ Project 14 ] BucketList ( Day 68, 69, 70, 71, 72, 73 )

Using Touch ID and Face ID with SwiftUI
    - LAContext, LocalAuthentication, Privacy - Face ID Usage Description
Adding user locations to a map
    - MapReader, Marker
Improving our map annotations
    - Annotation ( Custom Marker ), Make Struct Conform to Equatable
Selecting and editing map annotations
    - Sheet without Boolean variable ( unwrapping the optional automatically ), SwiftUI View initializer ( underscore approach for @State variable ), get back new data from sheet ( escaping closure )

Downloading data from Wikipedia
    - showing different UI depending on the current load state (enum), add different style textViews with +
Sorting Wikipedia results
    - conform Comparable protocol, make a computed property


Introducing MVVM into your SwiftUI project
    - MVVM ( software architecture, architectural design pattern ) - Model View View-Model ( separate logic from layout ) create ViewModel and place it into View extension ( that manages data, manipulates it on behalf of ContentView - much easier to write tests ), move data logics to ViewModel from View
Locking our UI behind Face ID
    - Face ID, Touch ID



댓글

이 블로그의 인기 게시물

Xcode ShortCuts

[ from Xcode 15 ] Automatically split a function call with multiple parameters into several lines. To do this, place the cursor inside the parameter area and press Ctrl + M. AS-IS TO-BE