0

image 1

Hi there, just like what the title says, I am in need of guidance/help on how to achieve similar UI design style as what's embedded above. I understand using UIKit could be harder as opposed to SwiftUI, but I am told to use UIKit as part of my study. Any help is much appreciated.

Edit: We could start from the top, IE: maybe it's a custom collectionView? or static tableview?

Is the "variation" tab a collectionview inside a tableview cell? How to achieve the "buy" and 'sell" section?

Kevin
  • 291
  • 3
  • 12

2 Answers2

1

I always use UIStackView for multiple views like this, it's easy to setup, to configure and to update.

orange views are vertical UIStackView, play with spacing, distribution and other properties of UIStackView to get it fit.

enter image description here

Also if you think height of views get bigger of user screen, simply drop root stackView to UIScrollView, find out more how to have scrollable UIStackView

zzmasoud
  • 164
  • 1
  • 8
1

Masoud provided a great answer regarding the layout of the screen.

as for the question "How to achieve the "buy" and 'sell" section?", You might be interested in the UITextField's .layer.cornerRadius property.

Sparklebeard
  • 808
  • 6
  • 15