Realm+SwiftUI-1: PropertyWrappers - Part 2

Поділитися
Вставка
  • Опубліковано 14 гру 2024

КОМЕНТАРІ • 19

  • @obelix8477
    @obelix8477 2 роки тому +1

    +1 For reinforcing using snippets to make coding easier. 😘

  • @codylimongello
    @codylimongello 2 роки тому

    I had been wondering how to access the local realm data via Realm Studio,. Thank you for this video!!

  • @predicked
    @predicked 9 місяців тому

    Thank you

  • @larschristiansen3136
    @larschristiansen3136 2 роки тому

    Amazingly easy! And I lowed the search part.
    Calls on memories of dBase and Paradox Dos.
    Looking for to what is next.
    Seem to be a UA-cam problem. The "I don't like" button was black as if it had been selected. So I rectified and added a like.

    • @kenturnbull9679
      @kenturnbull9679 2 роки тому

      dBase and Paradox...now there's a flashback. Next you'll want to channel Visicalc. Sorry Stewart; couldn't rersist.

  • @sonix412
    @sonix412 9 місяців тому

    Hi i have a problem with .searchable.
    When i click the search button this error appears in xcode: Publishing changes from within view updates is not allowed, this will cause undefined behavior.
    How can i solve this?

  • @Mahadev-x7u
    @Mahadev-x7u 2 роки тому +1

    Thank you…

  • @ChuckDiggins
    @ChuckDiggins 2 роки тому

    Fun stuff, Stewart. In the searchable function, how do I make that search case-insensitive? Also, do we simply add onCommit to the textfield to have it respond to keyboard return?
    (I'm not going to change anything in the project ... to stay consistent with your lesson project)

    • @StewartLynch
      @StewartLynch  2 роки тому +1

      I struggled with that too, and at this point, I am not sure that it is possible. It is a relatively new feature. There are definitely some limitations to this approach using property wrappers as I will identify in the next project too. In the third project that I toggle, I move away from property wrappers to an MVVM approach with a Realm notifications. I have not created that last project yet, so let me see if I can address the searchable issue in that project

  • @andresraigoza2082
    @andresraigoza2082 Рік тому

    Thank you so much, I'm having an issue though, every time I type something in the search bar I get this purple warning: "Publishing changes from within view updates is not allowed, this will cause undefined behavior". Any idea why this is happening?

    • @StewartLynch
      @StewartLynch  Рік тому

      Does this happen when you run on a device?

    • @andresraigoza2082
      @andresraigoza2082 Рік тому

      @@StewartLynch Yes, I just tested, it happens on device as well. My device is running iOS 16.3.1 and my Xcode 14.2

    • @StewartLynch
      @StewartLynch  Рік тому +1

      This sounds like a question for Realm then.

    • @sonix412
      @sonix412 9 місяців тому

      any idea how to solve this?

  • @pat0181
    @pat0181 2 роки тому

    Great lesson, however I have an issue with my copy of this ToDo. The search field is insisting that the first letter is a capital and the search is case sensitive.
    On another note, please consider where you are typing in your code. If it is at the bottom of the screen it can be hidden by advertisements or the video control buttons.
    Other than that, very enjoyable and educational.

    • @StewartLynch
      @StewartLynch  2 роки тому

      I sort out the search field in lesson 5 so keep watching.. Thanks for the note on where I am typing. I will try to scroll up and keep the typing in the middle of the screen.

    • @pat0181
      @pat0181 2 роки тому

      @@StewartLynch Thanks for the update, look forward to getting to lesson 5

  • @ChuckDiggins
    @ChuckDiggins 2 роки тому

    And thanks