Commit 5462110c by Daniel Dahan

development: updated accessibility for fileprivate(set) access types

parent b1e47781
...@@ -102,7 +102,7 @@ open class Bar: View { ...@@ -102,7 +102,7 @@ open class Bar: View {
} }
/// ContentView that holds the any desired subviews. /// ContentView that holds the any desired subviews.
open fileprivate(set) lazy var contentView = UIView() open let contentView = UIView()
/// Left side UIViews. /// Left side UIViews.
open var leftViews: [UIView] { open var leftViews: [UIView] {
......
...@@ -37,7 +37,7 @@ open class Button: UIButton, Pulseable { ...@@ -37,7 +37,7 @@ open class Button: UIButton, Pulseable {
allows the dropshadow effect on the backing layer, while clipping allows the dropshadow effect on the backing layer, while clipping
the image to a desired shape within the visualLayer. the image to a desired shape within the visualLayer.
*/ */
open fileprivate(set) var visualLayer = CAShapeLayer() open let visualLayer = CAShapeLayer()
/// A Pulse reference. /// A Pulse reference.
open fileprivate(set) var pulse: Pulse! open fileprivate(set) var pulse: Pulse!
......
...@@ -284,7 +284,7 @@ open class Capture: View { ...@@ -284,7 +284,7 @@ open class Capture: View {
open weak var delegate: CaptureDelegate? open weak var delegate: CaptureDelegate?
/// A reference to the CapturePreview view. /// A reference to the CapturePreview view.
open fileprivate(set) var preview: CapturePreview! open let preview = CapturePreview()
/// A Timer reference for when recording is enabled. /// A Timer reference for when recording is enabled.
open fileprivate(set) var timer: Timer? open fileprivate(set) var timer: Timer?
...@@ -653,8 +653,7 @@ extension Capture { ...@@ -653,8 +653,7 @@ extension Capture {
extension Capture { extension Capture {
/// Prepares the preview. /// Prepares the preview.
fileprivate func preparePreview() { fileprivate func preparePreview() {
preview = CapturePreview() layout(preview).edges()
layout(preview).edges()
(preview.layer as! AVCaptureVideoPreviewLayer).session = session (preview.layer as! AVCaptureVideoPreviewLayer).session = session
startSession() startSession()
......
...@@ -52,7 +52,7 @@ extension UIViewController { ...@@ -52,7 +52,7 @@ extension UIViewController {
open class CaptureController: ToolbarController { open class CaptureController: ToolbarController {
/// A reference to the Capture instance. /// A reference to the Capture instance.
@IBInspectable @IBInspectable
open fileprivate(set) var capture = Capture() open let capture = Capture()
open override var supportedInterfaceOrientations: UIInterfaceOrientationMask { open override var supportedInterfaceOrientations: UIInterfaceOrientationMask {
return UIInterfaceOrientationMask.portrait return UIInterfaceOrientationMask.portrait
......
...@@ -37,7 +37,7 @@ open class Card: PulseView { ...@@ -37,7 +37,7 @@ open class Card: PulseView {
} }
/// A container view for subviews. /// A container view for subviews.
open fileprivate(set) var container = UIView() open let container = UIView()
@IBInspectable @IBInspectable
open override var cornerRadiusPreset: CornerRadiusPreset { open override var cornerRadiusPreset: CornerRadiusPreset {
......
...@@ -38,7 +38,7 @@ open class CollectionReusableView: UICollectionReusableView, Pulseable { ...@@ -38,7 +38,7 @@ open class CollectionReusableView: UICollectionReusableView, Pulseable {
allows the dropshadow effect on the backing layer, while clipping allows the dropshadow effect on the backing layer, while clipping
the image to a desired shape within the visualLayer. the image to a desired shape within the visualLayer.
*/ */
open fileprivate(set) var visualLayer = CAShapeLayer() open let visualLayer = CAShapeLayer()
/// A Pulse reference. /// A Pulse reference.
open fileprivate(set) var pulse: Pulse! open fileprivate(set) var pulse: Pulse!
......
...@@ -38,7 +38,7 @@ open class CollectionViewCell: UICollectionViewCell, Pulseable { ...@@ -38,7 +38,7 @@ open class CollectionViewCell: UICollectionViewCell, Pulseable {
allows the dropshadow effect on the backing layer, while clipping allows the dropshadow effect on the backing layer, while clipping
the image to a desired shape within the visualLayer. the image to a desired shape within the visualLayer.
*/ */
open fileprivate(set) var visualLayer = CAShapeLayer() open let visualLayer = CAShapeLayer()
/// A Pulse reference. /// A Pulse reference.
open fileprivate(set) var pulse: Pulse! open fileprivate(set) var pulse: Pulse!
......
...@@ -52,7 +52,7 @@ extension UIViewController { ...@@ -52,7 +52,7 @@ extension UIViewController {
open class EditorController: ToolbarController { open class EditorController: ToolbarController {
/// A reference to the Editor instance. /// A reference to the Editor instance.
@IBInspectable @IBInspectable
open fileprivate(set) var editor = Editor() open let editor = Editor()
/** /**
Prepares the view instance when intialized. When subclassing, Prepares the view instance when intialized. When subclassing,
......
...@@ -50,7 +50,7 @@ extension UIViewController { ...@@ -50,7 +50,7 @@ extension UIViewController {
open class MenuController: RootController { open class MenuController: RootController {
/// Reference to the MenuView. /// Reference to the MenuView.
open fileprivate(set) var menu = Menu() open let menu = Menu()
/** /**
Opens the menu with a callback. Opens the menu with a callback.
......
...@@ -32,10 +32,10 @@ import UIKit ...@@ -32,10 +32,10 @@ import UIKit
open class MenuItem: View { open class MenuItem: View {
/// A reference to the titleLabel. /// A reference to the titleLabel.
open fileprivate(set) var titleLabel = UILabel() open let titleLabel = UILabel()
/// A reference to the button. /// A reference to the button.
open fileprivate(set) var button = FabButton() open let button = FabButton()
/** /**
Prepares the view instance when intialized. When subclassing, Prepares the view instance when intialized. When subclassing,
......
...@@ -101,7 +101,7 @@ public protocol PageTabBarControllerDelegate { ...@@ -101,7 +101,7 @@ public protocol PageTabBarControllerDelegate {
@objc(PageTabBarController) @objc(PageTabBarController)
open class PageTabBarController: RootController { open class PageTabBarController: RootController {
/// Reference to the PageTabBar. /// Reference to the PageTabBar.
open fileprivate(set) var pageTabBar = PageTabBar() open let pageTabBar = PageTabBar()
/// A boolean that indicates whether bounce is enabled. /// A boolean that indicates whether bounce is enabled.
open var isBounceEnabled: Bool { open var isBounceEnabled: Bool {
......
...@@ -50,7 +50,7 @@ extension UIViewController { ...@@ -50,7 +50,7 @@ extension UIViewController {
open class PhotoLibraryController: UIViewController { open class PhotoLibraryController: UIViewController {
/// A reference to a PhotoLibrary. /// A reference to a PhotoLibrary.
open fileprivate(set) var photoLibrary = PhotoLibrary() open let photoLibrary = PhotoLibrary()
open override func viewDidLoad() { open override func viewDidLoad() {
super.viewDidLoad() super.viewDidLoad()
......
...@@ -62,7 +62,7 @@ public protocol SearchBarDelegate { ...@@ -62,7 +62,7 @@ public protocol SearchBarDelegate {
open class SearchBar: Bar { open class SearchBar: Bar {
/// The UITextField for the searchBar. /// The UITextField for the searchBar.
open fileprivate(set) var textField = UITextField() open let textField = UITextField()
/// Reference to the clearButton. /// Reference to the clearButton.
open fileprivate(set) var clearButton: IconButton! open fileprivate(set) var clearButton: IconButton!
......
...@@ -61,7 +61,7 @@ open class SearchBarController: StatusBarController { ...@@ -61,7 +61,7 @@ open class SearchBarController: StatusBarController {
} }
/// Reference to the SearchBar. /// Reference to the SearchBar.
open fileprivate(set) var searchBar = SearchBar() open let searchBar = SearchBar()
open override func layoutSubviews() { open override func layoutSubviews() {
super.layoutSubviews() super.layoutSubviews()
......
...@@ -91,7 +91,7 @@ extension UIViewController { ...@@ -91,7 +91,7 @@ extension UIViewController {
open class SnackbarController: RootController { open class SnackbarController: RootController {
/// Reference to the Snackbar. /// Reference to the Snackbar.
open fileprivate(set) var snackbar = Snackbar() open let 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
......
...@@ -50,7 +50,7 @@ extension UIViewController { ...@@ -50,7 +50,7 @@ extension UIViewController {
open class StatusBarController: RootController { open class StatusBarController: RootController {
/// A reference to the statusBar. /// A reference to the statusBar.
open fileprivate(set) var statusBar = UIView() open let statusBar = UIView()
/// A boolean that indicates to hide the statusBar on rotation. /// A boolean that indicates to hide the statusBar on rotation.
open var shouldHideStatusBarOnRotation = true open var shouldHideStatusBarOnRotation = true
......
...@@ -37,7 +37,7 @@ open class TableViewCell: UITableViewCell, Pulseable { ...@@ -37,7 +37,7 @@ open class TableViewCell: UITableViewCell, Pulseable {
allows the dropshadow effect on the backing layer, while clipping allows the dropshadow effect on the backing layer, while clipping
the image to a desired shape within the visualLayer. the image to a desired shape within the visualLayer.
*/ */
open fileprivate(set) var visualLayer = CAShapeLayer() open let visualLayer = CAShapeLayer()
/// A Pulse reference. /// A Pulse reference.
open fileprivate(set) var pulse: Pulse! open fileprivate(set) var pulse: Pulse!
......
...@@ -186,7 +186,7 @@ open class TextField: UITextField { ...@@ -186,7 +186,7 @@ open class TextField: UITextField {
/// The placeholder UILabel. /// The placeholder UILabel.
@IBInspectable @IBInspectable
open fileprivate(set) var placeholderLabel = UILabel() open let placeholderLabel = UILabel()
/// Placeholder normal text /// Placeholder normal text
@IBInspectable @IBInspectable
...@@ -210,7 +210,7 @@ open class TextField: UITextField { ...@@ -210,7 +210,7 @@ open class TextField: UITextField {
/// The detailLabel UILabel that is displayed. /// The detailLabel UILabel that is displayed.
@IBInspectable @IBInspectable
open fileprivate(set) var detailLabel = UILabel() open let detailLabel = UILabel()
/// The detailLabel text value. /// The detailLabel text value.
@IBInspectable @IBInspectable
......
...@@ -57,7 +57,7 @@ public protocol TextStorageDelegate: NSTextStorageDelegate { ...@@ -57,7 +57,7 @@ public protocol TextStorageDelegate: NSTextStorageDelegate {
open class TextStorage: NSTextStorage { open class TextStorage: NSTextStorage {
/// A storage facility for attributed text. /// A storage facility for attributed text.
open fileprivate(set) var storage: NSMutableAttributedString! open let storage = NSMutableAttributedString()
/// The regular expression to match text fragments against. /// The regular expression to match text fragments against.
open var expression: NSRegularExpression? open var expression: NSRegularExpression?
...@@ -70,18 +70,10 @@ open class TextStorage: NSTextStorage { ...@@ -70,18 +70,10 @@ open class TextStorage: NSTextStorage {
/// Initializer. /// Initializer.
public override init() { public override init() {
super.init() super.init()
prepareStorage()
} }
} }
extension TextStorage { extension TextStorage {
/// Prepare the storage.
fileprivate func prepareStorage() {
storage = NSMutableAttributedString()
}
}
extension TextStorage {
/// A String value of the attirbutedString property. /// A String value of the attirbutedString property.
open override var string: String { open override var string: String {
return storage.string return storage.string
......
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