Skip to main content
Logo Appt Light

Reflow on iOS

Content on the screen should reflow based on the users' preferences. In landscape mode, the vertical space is much smaller compared to portrait mode. And when users have enlarged their font size, text should not get truncated. Instead, apps should adapt the interface to the available space.

On iOS, all elements should be placed in a scrollable layout, such as UIScrollViewUITableView or UICollectionView. Never use fixed values for any heights or widths.

let label = UILabel()
label.text = "Content should scroll!"

let view = UIView()
view.addSubview(label)

let scrollView = UIScrollView()
scrollView.addSubview(view)

Feedback?

Let us know!