Posts

Showing posts with the label Forms

Ray Wenderlich Course - SwiftUI (Part 5)

Image
Here we go! So a bit of time now to continue with Laurie's course. Let's do this! Start Time - 19:29 ForEach & Identifiable Key paths - accessing the properties without accessing the actual values. \. syntax. \. self is used for simple types like strings. Paused at 19:35; resumed at 19:55 UUID - unique identifier. Making a custom type that conforms to identifiable. Nothing is actually working - with the picker or when using the custom type. {        let tips = RelaxationTip . demoTips          @ State private var selectedPickerIndex = 0      var body : some View {     Picker (selection: $selectedPickerIndex , label: Text ( "Relaxation actions" )) {     VStack {         ForEach ( 0 ..< tips . count ) { index in             HStack {                    ...