Excelente Videos! Learning a lot. You can use a private var on movie2 and with setter and getter go for a read/write new values. I've made a new mutating func on the struct that is called from the class passing the title arguments. Worked fine! I know you can do that, but i'm learning!!!!! Great Job you are doing, continue!
I like the way you explain the code, however, one thing I have noticed is the IDE(Xcode) doesn't work properly. Sometimes it doesn't show the compilation errors.
I looked upon some resources and found that if you do not write any access control keywords and the default is actually internal, meaning internal to the module
I'm looking at his code at around 9:15 and I'm getting errors if I have it the way he has it. It will work if I refactor it to this: ``` class MovieManager{ var movie1: MovieModel var movie2: MovieModel var movie3: MovieModel init(){ movie1 = MovieModel(title: "Avatar", genre: .action, isFavorite: false) movie2 = MovieModel(title: "Step Brothers", genre: .comedy, isFavorite: false) movie3 = MovieModel(title: "Avengers", genre: .action, isFavorite: false) } } ``` Why?
Would like to point out that @9:19 the variables are actually internal to the module and not public
I've never heard of Step Brothers, and I just watched the trailer and will watch it. Thanks.
Just want to say that you are the best. Thank you, Nick!
Woot woot! We cruizin'! Think I'm finally comfortable with the syntax... getting there. Can't thank you enough, Nick! 🙏🏻
Awesome videos with proper knowledge. Also very easy to learn from your courses. Thank you!
Great lesson! Thank you very much!💫
Excelente Videos! Learning a lot. You can use a private var on movie2 and with setter and getter go for a read/write new values. I've made a new mutating func on the struct that is called from the class passing the title arguments. Worked fine! I know you can do that, but i'm learning!!!!! Great Job you are doing, continue!
Nick thank you for another quality lesson🔥
I like the way you explain the code, however, one thing I have noticed is the IDE(Xcode) doesn't work properly. Sometimes it doesn't show the compilation errors.
This has something to do with the playground environment. In the next playlist we will use the normal Xcode environment which works better
Hey, Nick! As always, great and brilliant.
theyre finally making senseee omg
i have heard that the var func and everything which is not marked as private is internal, i want to ask, is internal or public?
Technically ‘internal’ but most people don’t understand what that difference is at this point
Really nice lesson! Thank you so much!!!!
Thank you ❤
Welcome! 👍
Thank you
I looked upon some resources and found that if you do not write any access control keywords and the default is actually internal, meaning internal to the module
Step Brothers 😂 That's my fav
I'm looking at his code at around 9:15 and I'm getting errors if I have it the way he has it. It will work if I refactor it to this:
```
class MovieManager{
var movie1: MovieModel
var movie2: MovieModel
var movie3: MovieModel
init(){
movie1 = MovieModel(title: "Avatar", genre: .action, isFavorite: false)
movie2 = MovieModel(title: "Step Brothers", genre: .comedy, isFavorite: false)
movie3 = MovieModel(title: "Avengers", genre: .action, isFavorite: false)
}
}
```
Why?
Of the 3 movies listed, I go w/ Avengers. It makes me feel like a kid again and I didn't even like the other two lol.
Yo!
Avengers is my fav❤