SwiftUI 클론코딩
- iOS 15.0+
- Xcode 13.0+
참고 강의 Hacking With Swift The 100 Days of SwiftUI
Language Study
// Property Wrapper
@State, @FocusState
// View Struct
View, Text, Button, Form(Group, Section), TextField, Picker
NavigationLink, NavigationView(title, barTitleStyle, toolbar)
ForEach, Formatter
// View Struct
Color, Gradient(Linear, Radial, Angular),
ZStack, VStack, HStack, Image
// Function
Alert, ignoresSafeArea
// Property Wrapper
@ViewBuilder, ViewModifier
// Objcect
Date(), DateComponents()
// Format
DateFormat
// CoreML
MLModelConfiguration(), CoreMLClass()
// View
List vs ForEach
// Get File Conetns
Bundle.main.url()
// function
withAnimation{ }
// Object
UITextChecker()
// withAnimation
withAnimation(
.interpolatingSpring(stiffness: 5, damping: 1)) {
self.animationAmount3D += 360
}
// animation
.animation(
.easeInOut(duration: 1)
.repeatForever(autoreverses: false),
value: self.animationAmount32
)
// Property Wrappers
@StateObject, @AppStorage, @Environment, @FetchRequest,
@Published, @ScaledMetric, @SceneStorage, @ObservedObject
Challenge X
Codable Data(JSON)
Bundle Extension
Challenge X