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 {
@IBDesignable
open class BottomNavigationController: UITabBarController, UITabBarControllerDelegate {
/// 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.
......
......@@ -102,7 +102,7 @@ open class ContentView: View {
}
/// ContentView that holds the any desired subviews.
open private(set) lazy var contentView = UIView()
open private(set) lazy var contentView = View()
/// Left side UIControls.
open var leftControls = [UIView]() {
......
......@@ -51,7 +51,7 @@ extension UIViewController {
@IBDesignable
open class MenuController: RootController {
/// 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.
......@@ -82,7 +82,7 @@ open class MenuController: RootController {
open func closeMenu(completion: (() -> Void)? = nil) {
if false == isUserInteractionEnabled {
rootViewController.view.alpha = 1
menu.open { [weak self] (view) in
menu.close { [weak self] (view) in
guard let s = self else {
return
}
......
......@@ -100,6 +100,9 @@ public protocol PageTabBarControllerDelegate {
@objc(PageTabBarController)
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.
open internal(set) var isTabSelectedAnimation = false
......@@ -109,9 +112,6 @@ open class PageTabBarController: RootController {
/// PageTabBar alignment setting.
open var pageTabBarAlignment = PageTabBarAlignment.bottom
/// Reference to the PageTabBar.
open internal(set) lazy var pageTabBar: PageTabBar = PageTabBar()
/// Delegation handler.
open weak var delegate: PageTabBarControllerDelegate?
......
......@@ -32,7 +32,7 @@ import UIKit
open class PhotoLibraryController: UIViewController {
/// 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() {
super.viewDidLoad()
......
......@@ -32,7 +32,7 @@ import UIKit
open class RemindersController: UIViewController {
/// 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() {
super.viewDidLoad()
......
......@@ -50,7 +50,7 @@ extension UIViewController {
open class SearchBarController: RootController {
/// 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
......
......@@ -86,12 +86,12 @@ extension UIViewController {
}
open class SnackbarController: RootController {
/// Reference to the Snackbar.
open private(set) lazy var snackbar: Snackbar = Snackbar()
/// A boolean indicating if the Snacbar is animating.
open internal(set) var isAnimating = false
/// Reference to the Snackbar.
open internal(set) lazy var snackbar: Snackbar = Snackbar()
/// Delegation handler.
open weak var delegate: SnackbarControllerDelegate?
......
......@@ -51,7 +51,7 @@ extension UIViewController {
@IBDesignable
open class StatusBarController: RootController {
/// 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
......
......@@ -69,12 +69,12 @@ public protocol ToolbarControllerDelegate {
@objc(ToolbarController)
open class ToolbarController: RootController {
/// Internal reference to the floatingViewController.
/// Reference to the Toolbar.
open private(set) lazy var toolbar: Toolbar = Toolbar()
/// Internal reference to the floatingViewController.
private var internalFloatingViewController: UIViewController?
/// Reference to the Toolbar.
open internal(set) lazy var toolbar: Toolbar = Toolbar()
/// Delegation handler.
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