To create a view controller with a full screen scroll view and a stack view filling the scroll view in Swift, follow these steps:
viewDidLoad
method, set the contentSize
property of the scroll view to the height of the stack view.Here's the code for the view controller:
main.swift776 chars27 lines
gistlibby LogSnag