SWIFTUI
Quick Start
- 1 QUICK START
- 2 XCODE
- 2.1 Settings
- 2.1.1 Deployment – Add your developer account to XCode
- 2.1.2 Deployment – Automatically manage signing
- 2.1.3 Code Editor – Set Indentation
- 2.1.4 Code Editor – Disable Line Wrapping
- 2.1.5 Automatic Preview – ShowHide
- 2.1.6 Automatic Preview – Below Code
- 2.1.7 Automatic Preview – Landscape
- 2.2 Commands
- 2.2.1 Simulator – Move Window
- 2.2.2 Simulator – Take Screenshot
- 2.2.3 Simulator – Open Home Screen
- 2.2.4 Show available Devices and Simulators
- 2.3 Application
- 2.3.1 Import Images
- 2.3.2 Specify Icons
- 2.3.3 Specify Name, Bundle ID & Version
- 2.3.4 Specify Orientation
- 2.3.5 Specify Initial Screen
- 2.3.6 Specify Launch Screen
- 2.4 Playgrounds
- 3 VIEW OPERATIONS
- 3.1 Property Wrappers
- 3.1.1 $
- 3.1.2 @State
- 3.1.3 @GestureState
- 3.1.4 @Binding
- 3.1.5 @Published
- 3.1.6 @ObservedObject
- 3.1.7 @EnvironmentObject
- 3.2 Basic View Operations
- 3.2.1 Create New File
- 3.2.2 Add View
- 3.2.3 Edit View Properties
- 3.2.4 Button Action
- 3.2.5 Apply Modifier to View
- 3.2.6 Apply Modifier to Modifier
- 3.3 Advanced View Operations
- 3.3.1 Animations
- 3.3.2 Transitions
- 3.3.3 Gestures
- 3.3.4 Conditional Views
- 3.3.5 Create Views from Array using For Each
- 3.3.6 Move View Between Containers
- 3.3.7 Geometry Reader
- 3.4 Custom Views
- 4 VIEW TYPES
- 4.1 Visible Views
- 4.1.1 Button
- 4.1.2 Image
- 4.1.3 Map View (wrapper)
- 4.1.4 Text
- 4.1.5 TextField
- 4.1.6 Video Player (AVKit – no default controls)
- 4.1.7 Video Controller (AVKit – default controls)
- 4.1.8 VideoPlayer
- 4.2 Container Views
- 4.3 Helper Views
- 4.4 Geometrical Shapes
- 5 View Modifiers
- 5.1 .animation
- 5.2 .background
- 5.3 .bold
- 5.4 .border
- 5.5 .clipped
- 5.6 .cornerRadius
- 5.7 .edgesIgnoringSafeArea
- 5.8 .font
- 5.9 .fontWeight
- 5.10 .foregroundColor
- 5.11 .frame
- 5.12 .gesture
- 5.12.1 Tap
- 5.12.2 Long Press
- 5.12.3 Drag
- 5.12.4 Magnification
- 5.13 .italic
- 5.14 .mask.
- 5.15 .offset
- 5.16 .onLongPressGesture
- 5.17 .onTapGesture
- 5.18 .overlay
- 5.19 .padding
- 5.20 .scaleEffect
- 5.21 .shadow
- 5.22 .tracking
- 5.23 .transition
- 5.24 .underline
- 6 SUMMARY