How to create custom Property Wrappers in SwiftUI (PART 2/2) | Advanced Learning #30

Поделиться
HTML-код
  • Опубликовано: 28 ноя 2024

Комментарии • 38

  • @notorioustofu3482
    @notorioustofu3482 Месяц назад

    CustomProjectedValue may be overkill in most cases, but when it's time to use it, I doubt there's a more powerful way to leverage that amount of functionality. This video series is worth its weight in gold

  • @vikrantdwivedi9930
    @vikrantdwivedi9930 8 месяцев назад +2

    I watched this video itself for more than 4 times to understand it completely. Interesting to deep dive for the "under the hood concpts". Hats off to you Nick. Amazing video!!

  • @AlexandraKravtsova
    @AlexandraKravtsova 10 месяцев назад

    This playlist is just a treasure for anyone who wants to know SwiftUI on a professional level. You are simply the best, thank you so much for sharing your knowledge)

  • @Napivvarenuk
    @Napivvarenuk Месяц назад

    17:55 another mystery in swiftUI) You can make do-catch block working as expected if you do this this before "self.key = key". It seems that swift initialize "value" with nil after all stored properties without default values (in our case only "key" property) initialized, and refuse accept new values until view, which is relying on that @State property fully initialized. Other option (or if we don't have stored properties that should be initialized) is to use "@State private var value: Optional" declaration, this way we should initialize "value" explicitly in init().

  • @fade_enjoyer
    @fade_enjoyer Год назад

    your videos are proper nice for understanding complex swift stuff. too many tutorial makers stick to only beginner-friendly concepts. Greatly appreciate the work you put into these!

  • @federicoramos
    @federicoramos 7 месяцев назад +1

    Nick, this past two videos blowed my mind! Bravo and thank you!! 👏🏻👏🏻👏🏻

    • @SwiftfulThinking
      @SwiftfulThinking  7 месяцев назад

      Thanks! These were some of the hardest videos to make 🥵

  • @DiegoMonteroVEVO
    @DiegoMonteroVEVO Год назад

    You definitely deserve more views! You’re my hero, Nick. This is super interesting and well explained.

  • @ra9r
    @ra9r Год назад

    Best series on property wrappers ... well done. Thank you.

  • @josemanuelortizsanchez4983
    @josemanuelortizsanchez4983 10 месяцев назад +1

    It is the most complete and interesting video I have seen regarding this topic, congratulations!

  • @MrMassmaker
    @MrMassmaker 2 месяца назад

    a vary nice piece of explanations. thanks. Will re-view it several times for sure.

  • @savagedirk9267
    @savagedirk9267 Год назад

    Just a simpler way to get to the sim directory, copy the path->cmd+space->paste->enter. the folder is there. Just seems a little more natural than going to terminal.

  • @eliasayele1102
    @eliasayele1102 Год назад

    Welcome back, big brother.

  • @onlyfornonsense
    @onlyfornonsense Год назад

    Great content as always, Nick. Than you for doing this and I for one really apricate that you go to depth about these subjects.
    High class!

  • @chronically8810
    @chronically8810 5 месяцев назад

    Hey Nick👋🏼.I couldn't understand why we did _value = State(wrappedvalue) inside in init(). Our previous structs like Uppercased propertywrapper we just equalized it. The main difference between these two is only there is generic version of it ? Could we do Uppercased with same State(wrappedvalue) inside init() ?

  • @user-cdts
    @user-cdts Год назад

    That's really helpful to understand the property wrappers. I always like your video. Thank you!

  • @wonton120
    @wonton120 Год назад

    Thanks for the good tutorials.

  • @욘슨상
    @욘슨상 6 месяцев назад

    Thank you soooo much Nick!!

  • @VSilverstein
    @VSilverstein Год назад

    Super useful content! Looking forward for what the two hidden videos are! Maybe Part 3/3 will be creating a class with multiple @AppStorage "Preferences". So when updating one of the values in a view, doesn't redraw other views without the changed Preference :) E.g. show or hide a Button in home/second view shouldn't also redraw the settings view.

  • @malithmadhushanka3192
    @malithmadhushanka3192 8 месяцев назад

    Amazing content, Thank you so much! 😇

  • @aleksandrbagdasaryan2923
    @aleksandrbagdasaryan2923 11 месяцев назад

    Can I put this custom property wrapper into ViewModel ? When I tried it didn't trigger ui updates but change the value

  • @andresraigoza2082
    @andresraigoza2082 8 месяцев назад

    Awesome! Thank you so much!

    • @SwiftfulThinking
      @SwiftfulThinking  8 месяцев назад +1

      Andres! Glad to see you're still watching! Cheers

  • @Aymen_Raeed
    @Aymen_Raeed Год назад

    Omg this is so long and so hard my mind is blown

  • @dimaipatjj4392
    @dimaipatjj4392 Месяц назад

    Awesome!

  • @BogdanZyk
    @BogdanZyk Год назад

    Thank you very cool!

  • @carlosswiftdev2703
    @carlosswiftdev2703 Год назад

    Thank you :)

  • @Ahmet-k2b2i
    @Ahmet-k2b2i 8 месяцев назад

    👍

  • @farhad28881987
    @farhad28881987 Год назад

    U r the best

  • @shashank515
    @shashank515 Год назад

  • @baadrqaaba9529
    @baadrqaaba9529 4 месяца назад

    Just for fun , what happens under the hood regarding @propertyWrapper 😂

  • @alexeyorekhov3736
    @alexeyorekhov3736 7 месяцев назад

    The view is not being redrawn.

  • @NastyHangover
    @NastyHangover 8 месяцев назад

    Kind of annoying that the UI vids get so much more attention.... I mean creating a nice UI is fine but this here, is where the magic sauce gets cooked....