swift collection layout
I’m new to Xcode and swift.
I would like to know the function / layout used to create this below. When you click on an item it tells you how to craft it, then click another item the images in the cells change for the new item.
3 Replies
so you want to have someone program the whole app for you?
Break it up, read docs and do some work
No not do it for me. Just let me know what function is used to have it display an image in the top 9 cells when an imager is clicked on. Just a starting point of what to look up
Maybe mark on the picture what you mean. ? A press here, B selection showed here. C something 3rd and so on. Also u didnt say if you wanted the code for UIKit or SwiftUI xD by default its simple there is no function for this because u havnt written it yet. There is Grid View where icons can be put in a grid. Next each need a onTap behavior where icon data (since u dont handle/store views directly in swiftui) can be assigned to some var and then another view uses selection as input
But i recommend u research abit more on howto do basic SwiftUI, some more info / visuals of what you want the behavior todo and so on.