Commit a3df502b by Daniel Dahan

development: updated access rights for RootControllers and animations for Menu

parent 41a518db
...@@ -62,7 +62,7 @@ public enum BottomNavigationTransitionAnimation: Int { ...@@ -62,7 +62,7 @@ public enum BottomNavigationTransitionAnimation: Int {
@IBDesignable @IBDesignable
open class BottomNavigationController: UITabBarController, UITabBarControllerDelegate { open class BottomNavigationController: UITabBarController, UITabBarControllerDelegate {
/// The transition animation to use when selecting a new tab. /// The transition animation to use when selecting a new tab.
open var transitionAnimation: BottomNavigationTransitionAnimation = .fade open var transitionAnimation = BottomNavigationTransitionAnimation.fade
/** /**
An initializer that initializes the object with a NSCoder object. An initializer that initializes the object with a NSCoder object.
......
...@@ -102,7 +102,7 @@ open class ContentView: View { ...@@ -102,7 +102,7 @@ open class ContentView: View {
} }
/// ContentView that holds the any desired subviews. /// ContentView that holds the any desired subviews.
open private(set) lazy var contentView = UIView() open private(set) lazy var contentView = View()
/// Left side UIControls. /// Left side UIControls.
open var leftControls = [UIView]() { open var leftControls = [UIView]() {
......
...@@ -51,7 +51,7 @@ extension UIViewController { ...@@ -51,7 +51,7 @@ extension UIViewController {
@IBDesignable @IBDesignable
open class MenuController: RootController { open class MenuController: RootController {
/// Reference to the MenuView. /// Reference to the MenuView.
open internal(set) lazy var menu: Menu = Menu() open private(set) lazy var menu: Menu = Menu()
/** /**
Opens the menu with a callback. Opens the menu with a callback.
...@@ -82,7 +82,7 @@ open class MenuController: RootController { ...@@ -82,7 +82,7 @@ open class MenuController: RootController {
open func closeMenu(completion: (() -> Void)? = nil) { open func closeMenu(completion: (() -> Void)? = nil) {
if false == isUserInteractionEnabled { if false == isUserInteractionEnabled {
rootViewController.view.alpha = 1 rootViewController.view.alpha = 1
menu.open { [weak self] (view) in menu.close { [weak self] (view) in
guard let s = self else { guard let s = self else {
return return
} }
......
...@@ -100,6 +100,9 @@ public protocol PageTabBarControllerDelegate { ...@@ -100,6 +100,9 @@ public protocol PageTabBarControllerDelegate {
@objc(PageTabBarController) @objc(PageTabBarController)
open class PageTabBarController: RootController { open class PageTabBarController: RootController {
/// Reference to the PageTabBar.
open private(set) lazy var pageTabBar: PageTabBar = PageTabBar()
/// Indicates that the tab has been pressed and animating. /// Indicates that the tab has been pressed and animating.
open internal(set) var isTabSelectedAnimation = false open internal(set) var isTabSelectedAnimation = false
...@@ -109,9 +112,6 @@ open class PageTabBarController: RootController { ...@@ -109,9 +112,6 @@ open class PageTabBarController: RootController {
/// PageTabBar alignment setting. /// PageTabBar alignment setting.
open var pageTabBarAlignment = PageTabBarAlignment.bottom open var pageTabBarAlignment = PageTabBarAlignment.bottom
/// Reference to the PageTabBar.
open internal(set) lazy var pageTabBar: PageTabBar = PageTabBar()
/// Delegation handler. /// Delegation handler.
open weak var delegate: PageTabBarControllerDelegate? open weak var delegate: PageTabBarControllerDelegate?
......
...@@ -32,7 +32,7 @@ import UIKit ...@@ -32,7 +32,7 @@ import UIKit
open class PhotoLibraryController: UIViewController { open class PhotoLibraryController: UIViewController {
/// A reference to a PhotoLibrary. /// A reference to a PhotoLibrary.
public private(set) lazy var photoLibrary: PhotoLibrary = PhotoLibrary() open private(set) lazy var photoLibrary: PhotoLibrary = PhotoLibrary()
open override func viewDidLoad() { open override func viewDidLoad() {
super.viewDidLoad() super.viewDidLoad()
......
...@@ -32,7 +32,7 @@ import UIKit ...@@ -32,7 +32,7 @@ import UIKit
open class RemindersController: UIViewController { open class RemindersController: UIViewController {
/// A reference to a Reminder. /// A reference to a Reminder.
public private(set) lazy var reminders: Reminders = Reminders() open private(set) lazy var reminders: Reminders = Reminders()
open override func viewDidLoad() { open override func viewDidLoad() {
super.viewDidLoad() super.viewDidLoad()
......
...@@ -50,7 +50,7 @@ extension UIViewController { ...@@ -50,7 +50,7 @@ extension UIViewController {
open class SearchBarController: RootController { open class SearchBarController: RootController {
/// Reference to the SearchBar. /// Reference to the SearchBar.
open internal(set) lazy var searchBar: SearchBar = SearchBar() open private(set) lazy var searchBar: SearchBar = SearchBar()
/** /**
To execute in the order of the layout chain, override this To execute in the order of the layout chain, override this
......
...@@ -86,12 +86,12 @@ extension UIViewController { ...@@ -86,12 +86,12 @@ extension UIViewController {
} }
open class SnackbarController: RootController { open class SnackbarController: RootController {
/// Reference to the Snackbar.
open private(set) lazy var snackbar: Snackbar = Snackbar()
/// A boolean indicating if the Snacbar is animating. /// A boolean indicating if the Snacbar is animating.
open internal(set) var isAnimating = false open internal(set) var isAnimating = false
/// Reference to the Snackbar.
open internal(set) lazy var snackbar: Snackbar = Snackbar()
/// Delegation handler. /// Delegation handler.
open weak var delegate: SnackbarControllerDelegate? open weak var delegate: SnackbarControllerDelegate?
......
...@@ -51,7 +51,7 @@ extension UIViewController { ...@@ -51,7 +51,7 @@ extension UIViewController {
@IBDesignable @IBDesignable
open class StatusBarController: RootController { open class StatusBarController: RootController {
/// A reference to the statusBarView. /// A reference to the statusBarView.
open internal(set) lazy var statusBarView = View() open private(set) lazy var statusBarView = View()
/** /**
To execute in the order of the layout chain, override this To execute in the order of the layout chain, override this
......
...@@ -69,12 +69,12 @@ public protocol ToolbarControllerDelegate { ...@@ -69,12 +69,12 @@ public protocol ToolbarControllerDelegate {
@objc(ToolbarController) @objc(ToolbarController)
open class ToolbarController: RootController { open class ToolbarController: RootController {
/// Reference to the Toolbar.
open private(set) lazy var toolbar: Toolbar = Toolbar()
/// Internal reference to the floatingViewController. /// Internal reference to the floatingViewController.
private var internalFloatingViewController: UIViewController? private var internalFloatingViewController: UIViewController?
/// Reference to the Toolbar.
open internal(set) lazy var toolbar: Toolbar = Toolbar()
/// Delegation handler. /// Delegation handler.
open weak var delegate: ToolbarControllerDelegate? open weak var delegate: ToolbarControllerDelegate?
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment