Best way to learn Swift

Hi I'm new here - I'm trying to learn Swift and SwiftUI. Tried on PluralSight and Udemy but they have been outdated and thus hard to follow. So after finding Apples own guides I felt relieved and happy, but now I'm stuck again. After they've updated Xcode to use #Preview instead of PreviewProvider it's hard to follow along on their tutorial.

Does anyone know of good resources to study SwiftUI? Or know if apple plan to update their tutorials any time soon?

I'm here now if anyone's interested or it's useful information: https://developer.apple.com/tutorials/app-dev-training/managing-state-and-life-cycle

Since you're having issues with the #Preview, instead of:

struct MeetingView_Previews: PreviewProvider {
    static var previews: some View {
        MeetingView()
    }
}

I think this is what you want:

#Preview {
  MeetingView()
}

Everything else should just work as before.

Stick with the route you're going down, to learn the basic principles, then branch out with your own app and you'll soon learn it. If you need help with specific issues, try hacking with swift . com (no spaces).

Best way to learn Swift
 
 
Q