Skip to content
This repository has been archived by the owner on Jun 25, 2021. It is now read-only.

Allows subclassing #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ extension StackContainable where Self: UIViewController {
}
}

public class ScrollingStackController: UIViewController, UIScrollViewDelegate {
open class ScrollingStackController: UIViewController, UIScrollViewDelegate {

/// This define the behaviour stack needs to keep for a specified controller
///
Expand All @@ -122,7 +122,7 @@ public class ScrollingStackController: UIViewController, UIScrollViewDelegate {
/// This is the parent scroll view. Be sure to connect it to a valid object
@IBOutlet public var scrollView: UIScrollView?

public override func viewWillAppear(_ animated: Bool) {
open override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
guard let scroll = self.scrollView else { // you must to create a valid scroll view
fatalError("You must connect a valid scroll view to the view controller")
Expand Down Expand Up @@ -162,7 +162,7 @@ public class ScrollingStackController: UIViewController, UIScrollViewDelegate {
}

/// Adjust layout as the parent view's change
public override func viewDidLayoutSubviews() {
open override func viewDidLayoutSubviews() {
super.viewDidLayoutSubviews()
self.relayoutItems()
}
Expand Down