How to use Structs in Swift | Swift Basics #9

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 ก.ย. 2024

ความคิดเห็น • 24

  • @808richforever
    @808richforever ปีที่แล้ว +6

    thank you for this series...it's like helping me read Swift's syntax and grammar and functionality. Which helps me understand how UIs and the tutorials work from the written aspect! Thank you so much!

  • @jgraz96
    @jgraz96 8 หลายเดือนก่อน +5

    This one is a hard one. I completely lost the path from the previous videos. Even the one before this you mentioned was very “hard” it was very easy to me I got it completely. But this one right here… lost

    • @auroraj9648
      @auroraj9648 5 หลายเดือนก่อน

      lol, Me too, I'm soooooo lost

    • @niritrachelbisconer5892
      @niritrachelbisconer5892 2 หลายเดือนก่อน

      It is harder! I'll have to rewatch a few more times. Hopefully it will click

  • @FENTANYLJET
    @FENTANYLJET 3 หลายเดือนก่อน

    how can we get access to this project file for learning purposes

  • @apuylingga4687
    @apuylingga4687 ปีที่แล้ว

    Thank you so much..! may God always bestow good fortune on you and your family and always be under God's protection. Amminn

  • @Aboutjailbreak_IOS
    @Aboutjailbreak_IOS หลายเดือนก่อน

    Thank you very much buddy! You are goated. Really appreciate you))

    • @SwiftfulThinking
      @SwiftfulThinking  หลายเดือนก่อน +1

      Glad I could help

    • @Aboutjailbreak_IOS
      @Aboutjailbreak_IOS หลายเดือนก่อน

      @@SwiftfulThinking I really started my first coding from you. I understood the whole base level just because of your wonderful skills and explaining. Keep it up🤝

  • @frodprefect
    @frodprefect 11 หลายเดือนก่อน

    Love these videos. Say you have 100 variables in your struct. How would you go about updating them individually?

  • @mosh_wash
    @mosh_wash ปีที่แล้ว

    Hey Nick!👋Thanks for the video!
    Question:
    If someone ever worked with Figma components, can we say that this analogy is true:
    Struct is a main component with parameters we defined.
    Mutating a struct is like creating an instance of that component + changing values of parameters we defined?

  • @Traaaaa_
    @Traaaaa_ 11 หลายเดือนก่อน

    This video looks like getter and setter for encapsulation in struct. I ever learned getter and setter in c++ . Actually same but method how to make is different. Thankyou nick

  • @MosabbirSadman
    @MosabbirSadman ปีที่แล้ว

    I appreciate you explicitly making a video on the basics of structs, Nick. They're truly gems!

  • @einfacheinschlafen7399
    @einfacheinschlafen7399 5 หลายเดือนก่อน

    hello ,can t find the source code on the website

  • @luissda1
    @luissda1 ปีที่แล้ว

    Hiiiii men thank you for helping me so much in my career as iOS dev

  • @m.d.2029
    @m.d.2029 4 หลายเดือนก่อน

    Спасибо, Ник!!! Как всегда, на высоте!

  • @simply6162
    @simply6162 ปีที่แล้ว

    when will you provide us reason why there is benefit of using mutating function instead of creating new struct itself?

    • @SwiftfulThinking
      @SwiftfulThinking  ปีที่แล้ว +1

      You can google it, there are a few StackOverflow posts about it. The differences are so minimal that it doesn’t make a material difference. It’s just how the change is technically handled in memory. If you’re just learning Swift, I wouldn’t worry about it.

  • @fran8a
    @fran8a ปีที่แล้ว

    Hi!
    Thank you for these handy videos.
    In this one, I don't understand why you mentioned in previous videos using structs as preferable, but inside the struct, you use funcs that are risky for threading...

    • @SwiftfulThinking
      @SwiftfulThinking  ปีที่แล้ว +1

      There are no threading issues with structs because they are handled differently in memory. Structs are passed by value and not reference

    • @fran8a
      @fran8a ปีที่แล้ว

      @@SwiftfulThinking even if you use a func inside a struct? this drives me crazy :S

  • @amaniduniaapps
    @amaniduniaapps 7 หลายเดือนก่อน

    Well Done Nick!I like a lot how you comment out what u are doing and i wonder if u do it the same way when you write apps for yourself ?

  • @evgenij_lutz
    @evgenij_lutz ปีที่แล้ว

    Thank you, Nick 🫶