Ray Wenderlich Course - Second SwiftUI App Part 2 (and final - abandoned after this!)

Two days in a row, baby! Back to this confusing, but useful in places course.  I have around 40 minutes so enough time for a whole chapter possibly. 

Start Time - 17:15



We will use the above to add and delete tasks. A different view for new task?

New Task View

Here we go! Straight into a challenge...

Well this was hard of course! To be fair, I'm still getting used to SwiftUI so good practice...

Modal Views

You have a + button in the upper right.

var body: some View {
        NavigationView {
            List(taskStore.tasks) { task in
                Text(task.name)
                       
            }
        .navigationBarTitle("Tasks")
            .navigationBarItems (
                trailing:
                Button(action: {}) {
                    Image(systemName: "plus")
            
                
            }
            )
        }
    }

}

Again, complicated code!

Adding To Your Model

Definitely going to have to review this stuff at the end and in my next practice stuff!

We need a form. A form acts as a container to group views together.

*Time to abandon course!

This course is just riddled with errors. I have no idea why. Have tried everything and none of the comments are enlightening; I very much doubt that posting a comment will help! So there is no point continuing - the content was poorly explained and no offence to Jessy, but I do not rate him as an instructor.

What I am going to do instead is choose a project - let's go for HowManyWords - and try putting that together in SwiftUI. It will take some time but be fun!

Finish Time (course abandoned!) - 17:52 (37 minutes total)

Comments

Popular posts from this blog

*Xcode Project Entry 2* F1 Quiz - part 1

Angela Yu Course Part 10 (up to lesson 112)

Angela Yu Xcode 12 Course - Part 7 (lectures 74 to 79)