Commit 5462110c by Daniel Dahan

development: updated accessibility for fileprivate(set) access types

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