How to create a list of dynamic items - SwiftUI by Example

preview_player
Показать описание
In order to handle dynamic items, you must first tell SwiftUI how it can identify which item is which. This is done using the Identifiable protocol, which has only one requirement: some sort of id value that SwiftUI can use to see which item is which.
Рекомендации по теме
Комментарии
Автор

Questions? Comments? Tweet me @twostraws.

twostraws
Автор

Not one video on this world to show List to List view in SwiftUI not List to Detail view. For ex. I got list of continents that goes to the list of countries for chosen continent. Paul if you can help pls do. Thanks

firemob
Автор

🥲🥲 I have spent 2 years plus spending everyday trying to teach myself Swiftui with your classes and others and I was finally able to link my 5 screens together and they changed navigation and I’ve been flustered for weeks just reviewing and looking for a starting point like this to get me on a clear path again ( I knew nothing going into this but I have a dream, however I’m 50 and it feels like it takes 50 times longer because none of this comes naturally to me but I had a career in the design field before so that part I can handle because it stimulates me.) what I’m trying to say is thank you, with one small favor to ask could you take this and add the new navigation to it and show me how exactly that would work. I’ve watched every new navigation video and I get the concept but I never seem to be able to get to the pages I designed.

bugsyace
Автор

Hi paul,

Is it okay to have more than one big array of texts, colors, or images in my app(because i write it my own ), and if not with what i can replace it?

Thanks.

rcnttbu
Автор

Maybe there is someone who knows how to remove the space from each row item in the list?
When you create list by default you get some "padding" or "edge insets" for each row. For now the only way how I have managed to remove this is to set negative padding on the list (or each list item). But there should be some better way I guess.

kazhax
join shbcf.ru