Skip to content

Commit 84c9900

Browse files
committed
#10 Added short snippet into the view controller of the example app
1 parent 3edfb4b commit 84c9900

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

ScrollStackControllerDemo/ViewController.swift

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,15 @@ class ViewController: UIViewController, ScrollStackControllerDelegate {
5050
pricingVC = PricingVC.create(delegate: self)
5151
notesVC = NotesVC.create(delegate: self)
5252

53-
let v = UIView(frame: .zero)
54-
v.backgroundColor = .green
55-
v.heightAnchor.constraint(equalToConstant: 300).isActive = true
56-
stackView.addRow(view: v)
53+
/*
54+
Plain UIView example
55+
let plainView = UIView(frame: .zero)
56+
plainView.backgroundColor = .green
57+
plainView.heightAnchor.constraint(equalToConstant: 300).isActive = true
58+
stackView.addRow(view: plainView)
59+
*/
5760

58-
// stackView.addRows(controllers: [welcomeVC, notesVC, tagsVC, galleryVC,pricingVC], animated: false)
61+
stackView.addRows(controllers: [welcomeVC, notesVC, tagsVC, galleryVC,pricingVC], animated: false)
5962
}
6063

6164
@IBAction public func addNewRow() {

0 commit comments

Comments
 (0)