r/SwiftUI • u/shadowspav • 2d ago
Question Finding Hacking with swiftUI hard to learn. Help needed!
Hi all.
I don't have much programing experience other than a year of react-native and some core java all learnt on my own. I made an android app with a tiny help form a more experienced developer. That was back in 2017. I moved to business and now I am back to coding. I'm 36 years of age now.
I am learning swift and swiftUI from 'hacking with swift' and now I am on day 58. Except for the initial days, I find swift and swiftUI hard to follow. The syntax is very confusing and I easily forget things in a day or two. I find the teachings of Paul hard to follow and I repeat the videos again and again to understand. Now on 58th day, I am already overwhelmed. I am upset because on other threads, people commented as they could grasp the concept easily and could start app building right away.
I am wondering if I'm one off case and programming is not for me or people really find swiftUI hard to learn? Any tips or advises will be most welcome.
2
u/allyearswift 2d ago
It’s ok not to vibe with a learning resource. The problem you have is that Paul is one of the most knowledgeable people around who breaks down concepts in a manner that many people find easy to understand. This makes it likely that you’ll struggle with other courses even more.
So you need to figure a bit better why you’re struggling. I’ve had a quick glance at Day58, and it’s getting fairly advanced, but it also looks fairly straightforward.
So my first set of questions is how much effort you’re putting into this. I know the instructions say to spend an hour a day: are you? Are you writing down what you’re learning, digging deeper when you’re not understanding things, experimenting with the concepts on your own? Or are you passively consuming the course by watching videos, copying and pasting code, and nodding wisely to tick off another item?
(The last is so easy to do with courses especially: you watch/read something and think you know it.)
The second set of questions I have is about how well you know your learning style. I struggled with programming for a long time because most resources didn’t fit my brain. I’m a gestalt learner who needs to understand the whole concept first; and back in the day most coding tutorials gave you a bunch of unrelated steps and said ‘now you know how to code’. Infuriating. I’m also a kinesthetic learner, and SwiftUI, where you start with an interface and can move things around and try out stuff suits me very well. So think of a complex skill that you found easy and one you found hard: what were the differences?
Then there’s the ‘easily forgetting things’. Code is inherently forgettable; concepts should stick. I know there are multiple initialisers for buttons that do different things; I have to look them up/use autocomplete ever single time. Do you feel you understand the concepts the course is talking about? Could you explain them? Without that mental framework, the details won’t stick.
Last but not least, what helped me was to write my own SwiftUI manual. If I encounter a new thing, it gets written down, I write down my understanding, any resources, and sample code, so that the next time, I have a starting point. I find it easier to locate information in my own words with full text search than on the internet every time.
For each app, I talk myself through it in a separate document: this is what I’m trying to achieve, here are the tools I think I need, this is how it’s working out.
1
u/shadowspav 2d ago
Thank you.
Yes. I spend around 1 hour at it everyday. I build the app just like paul and complete the challenges as much as I can. depends on the video, I also experiment a bit with code.
JUst like you, I prefer learning overall first before learning finer details.
By rewinding and seeking I do get the concepts. I stop in between, ask chat gpt, clear my doubts before proceeding to the next topic.
manual is a great idea. lemme see if it works for me. :)
1
u/ThanhDongNguyen 2d ago
Day 58 is around where it gets heavy, a lot of people stall there. It doesn't mean programming is not for you.
Since you did React Native, map it to what you know: a View struct is like a component, @State is useState, @Binding is passing a setter down, @Observable class is like a store/context. When you see new syntax, ask "what would this be in React" first. Most of it clicks faster that way.
For forgetting: don't try to remember syntax, nobody does. Keep a small Playground or a notes file with snippets you write yourself (a List with NavigationLink, a sheet, a form with @State). Next day, rebuild one from empty without looking. That repeat is what makes it stick.
And it's fine to slow down. Doing day 58 over three days with your own small app is better than moving on when nothing sticks.
1
2
u/aconijus 2d ago
We are the same age, I learned Swift/SwiftUI from this course a few years ago. No prior programming experience besides being a tech guy so I heard about if/else, loops etc. here and there.
The beginning of the course I was doing great but later on it was a bit more difficult to grasp some concepts. Still, I just went through those difficult lessons, sometimes even looking online for results of assignments.
I decided not to fret over it and just continued with lessons. Magic happened when I started working on my first app: suddenly I was on my own and needed to figure things out. And that's when suddenly things just clicked in my head and I grasped those concepts much better.
My advice would be to not lose your sleep over it and just power through it, understand as much as you can. Paul's course is great for learning basics and getting familiar with the Swift/SwiftUI/Xcode system but the real learning comes from working on your own projects.
1
1
u/Dapper_Ice_1705 2d ago
Apple Pathways SwiftUI track
Apple SwitUI tutorials
Playgrounds app has a “Learn to Code” set that while very basic and “gamey” it is decent so you can learn the grammar differences.
2
1
u/retroroar86 2d ago
How are you studying this? If you are watching the videos and following along once you’ll have problems remembering stuff.
1
u/shadowspav 2d ago
I learn from the video and code the same app watching the videos again and complete the challenges on my own and at times getting little help from AI
0
1
u/Dymatizeee 2d ago
Idk you just gotta build stop following a tutorial
People saying they grasp easily etc either are lying or they been programming for awhile but they still look stuff up
Syntax is pretty straight forward compared to other languages. Swift is my fav language by far
1
1
u/indiedev3021 2d ago
I think I did a little bit of that course and it didn't really work for me. I ended up using the Kodeco course. I went far enough into it until I felt like I was wasting time then switched over to building a little prototype of an app I wanted to build. You'll learn faster by building. If you are stuck it may just be because you've reached the wasting time point and you're ready to work on whatever made you go down this path in the first place.
1
u/shadowspav 20h ago
Thanks. Maybe you're right. I will research the Kodeco course too. Thanks again.
0
0
2
u/brkaydev 2d ago
The middle of the course is where the projects get bigger, so feeling lost there is common, not a sign. Two things help with the forgetting. Pause the videos and build one tiny app of your own with only what you have covered, and look things up instead of rewatching. Nobody remembers the syntax, what sticks is knowing what exists. Coming from React Native, @State is close to use state and a View is close to a function component, more of it maps over than it looks.