Skip to content

Commit 9bca657

Browse files
committed
Some minor adjustments
1 parent 9cf289c commit 9bca657

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

ScrollStackControllerDemo/Child View Controllers/GalleryVC.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ extension GalleryVC: UICollectionViewDataSource, UICollectionViewDelegateFlowLay
5959
}
6060

6161
public func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize {
62-
return collectionView.bounds.size
62+
let size = collectionView.bounds.size
63+
return size
6364
}
6465

6566
public func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, minimumInteritemSpacingForSectionAt section: Int) -> CGFloat {

ScrollStackControllerDemo/Child View Controllers/NotesVC.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public class NotesVC: UIViewController, ScrollStackContainableController {
4040
self.textViewHeightConstraint.constant = newSize.height
4141

4242
view.height(constant: nil)
43-
super.updateViewConstraints()
43+
super.updateViewConstraints()
4444
}
4545

4646
public func reloadContentFromStackViewRow() {
@@ -49,10 +49,10 @@ public class NotesVC: UIViewController, ScrollStackContainableController {
4949

5050
public override func viewDidLoad() {
5151
super.viewDidLoad()
52-
52+
53+
view.height(constant: nil)
5354
textView.isScrollEnabled = false
5455
textView.delegate = self
55-
view.height(constant: nil)
5656
}
5757

5858

0 commit comments

Comments
 (0)