Using @State with classes - iExpense SwiftUI Tutorial 1/11

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

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

  • @joyjain3111
    @joyjain3111 11 месяцев назад +1

    Thank You @paul hudson🤩

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

    I am new with SwiftUI and just ran into this problem this week. Unfortunately, @Observable is "only available in iOS 17.0 or newer" so I guess I need to find another way of doing this myself, as my target is for older versions of the OS. (My iPhone X won't run iOS 17 😩) I guess I need to learn just what @Observable does behind the scenes!

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

    Does anybody know how it works with static properties of class? I have static property of @Observable class - gameIsActive (Bool) and would like to change states of different views depending of this common property. But I didn’t find how to do that.

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

    Great explanation, every once in a while I hit that not updating view… 😅

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

    Why can't you use @StateObject with class instead of @Obervable and @State?

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

    Hi, is this an updated video? I remember this project. Thanks

    • @twostraws
      @twostraws  Год назад +5

      Yes; all videos are getting an iOS 17 refresh.