How to use SwiftUI Table on macOS and iOS

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

КОМЕНТАРІ • 23

  • @apiweb2007
    @apiweb2007 Рік тому +5

    Thanks, Karin, for your excellent video. It's hard to find videos related to development for macOS applications using SwiftUI.
    I would like to suggest more videos related to the macOS, like ContextMenu, the menu Inspector sidebar, and Window management.
    Again, thank you for your great tutorial.

  • @michelandersonlutzteixeira4366
    @michelandersonlutzteixeira4366 28 днів тому

    Great video. I'm using it as a basis for an application I'm developing, but I need to include sections or groups, for example a table where I can separate by month sections.

  • @sergiovinhal5934
    @sergiovinhal5934 2 місяці тому

    Thank you Karin . You are important . You serve me very well.

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

    Super useful! Thanks Karin! Going to be using this in my expense tracker app!

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

    🤙🏽 thx Karin. Love the way you explain everything clearly. Thx for taking your time and to teach stuff easily

  • @YoeCode
    @YoeCode 5 місяців тому +1

    Thanks, great content.

  • @balabuyew
    @balabuyew Місяць тому

    1) Cannot find any information of how to scroll a Table using scrollPosition modifier both horizontally and vertically at the same time. Suppose I want to ensure that the 15-th column cell of 10-th row is shown on the screen. It seems that ScrollPosition structure does not provide any proper API.
    2) Also, it's interesting how the system fills ScrollPosition structure after scrolling via mouse or gesture. When the top item is shown only partially, for example.

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

    Thanks Karin for this video, you can't easily find tutorials for MacOS, especially these new features like Table. One question: I would like to use the contextMenu for example to delete a line. How can we do this? How would we know, WHICH element in the data array is meant? How would you implement the DELETE function in your button in the video?

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

      I found out myself, but a bit awkward, it only works if we don't use the implicit variable "$0", but instead the explicit variable (in my case 'person') so I called a function to return the menu items for the contextMenu like so:
      rows: {
      ForEach(personController.persons01) { person in
      TableRow(person).contextMenu { contextMenuItems(for: person) }
      }
      }

  • @MrSkovie
    @MrSkovie 8 днів тому

    Thanks, is there a way to detect if there's no row selected, lets say I want to add a item to the project selected, but if there's no row selected I want to remove the add button and replace it with a text " select a project" ?

  • @LebenWerden
    @LebenWerden 22 дні тому

    How I can make more than 10 columns?

  • @LebenWerden
    @LebenWerden 3 місяці тому

    Hi, how you can move rows?

  • @some-other-time
    @some-other-time Рік тому

    Thank you for the excellent tutorial. This was a very thorough explanation on how to use tables.
    I can't find the link to the project in either the video description or the blog post -- am I missing something obvious?

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

    Thanks, karin, Excellent video. I have a question, if the content of the table is wide, how could I implement it? That is, if the columns are more than 10 or even that the user can add more columns? How would you implement it?

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

    0:45 Hi Karin. Love your videos. The "better" word at this point would be "contract".
    E.g. "You can expand and _contract_ the columns" instead of "you can expand and decrease the columns"
    English is funny/hard in that it has words that are common counterparts in everyday language. For instance:
    - increase/decrease
    - expand/contract
    - love/hate
    Hope this helps. Love learning from you! (Probably because my mom is from Germany and I love your accent.)

  • @marshalldev
    @marshalldev 10 місяців тому

    Great video. Is there a way to achieve horizontal scroll in iPad incase the table has many columns? On Mac OS it is available.

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

    Hi Karin, I appreciate you made such a fantastic video to share your knowledge, as a beginner, if you could speak a little slower will be very helpful for me to understand the content, thank you.

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

    Hey Katrin, maybe you can help me out.
    I have a "Table" with many entries in it. The table is scrollable. So far so good. Now, when I add a new entry, I want the table to scroll to the bottom end. Is there a simple way to achieve this? Can the ScrollContentOffset be set at all? Thank you very much for your help and for your videos. Grüße aus Deutschland

  • @DmitriyGreh
    @DmitriyGreh 10 місяців тому

    Hi, Karin!
    Is it possible to make columns dynamic?

  • @gwgans
    @gwgans 11 місяців тому

    Can table data be modified in situ using TextEditor instead of Text?

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

    Cool 👍

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

    Girl do Moore Mac Table stuff or macOS related with swift