This is a demo app for UIStackView: distribution vs alignment 📚.
- It shows how the stack view looks with the different combinations of
distribution
andalignment
. - Things are organized in a
UICollectionView
which scrolls both vertically and horizontally. - Some tricks are used to add background color to the
UIStackView
, adding dashed borders to subviews, etc. - While running the application, it will capture snapshots of the stack view and save them on my Desktop 🙈 if
shouldSnapshot
is set totrue
. - For simplicity, everything is under one file
ViewController.swift
.