Commit cfa38e7c by M. Porooshani

Revert "issue-417: updated private(set) properties to internal(set)"

This reverts commit 6d808f51.
parent 4500782a
......@@ -283,13 +283,10 @@
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
INFOPLIST_FILE = App/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = io.cosmicmind.App;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "";
};
name = Debug;
};
......@@ -297,13 +294,10 @@
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
INFOPLIST_FILE = App/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = io.cosmicmind.App;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "";
};
name = Release;
};
......
......@@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.41.7</string>
<string>1.41.6</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
......
......@@ -61,7 +61,7 @@ public class BarController : UIViewController {
is recommended to use the transitionFromRootViewController
helper method.
*/
public internal(set) var rootViewController: UIViewController!
public private(set) var rootViewController: UIViewController!
/**
An initializer that initializes the object with a NSCoder object.
......
......@@ -172,12 +172,12 @@ public class CaptureSession : NSObject, AVCaptureFileOutputRecordingDelegate {
/**
:name: isRunning
*/
public internal(set) lazy var isRunning: Bool = false
public private(set) lazy var isRunning: Bool = false
/**
:name: isRecording
*/
public internal(set) lazy var isRecording: Bool = false
public private(set) lazy var isRecording: Bool = false
/**
:name: recordedDuration
......
......@@ -203,27 +203,27 @@ public class CaptureView : MaterialView, UIGestureRecognizerDelegate {
/**
:name: previewView
*/
public internal(set) lazy var previewView: CapturePreview = CapturePreview()
public private(set) lazy var previewView: CapturePreview = CapturePreview()
/**
:name: capture
*/
public internal(set) lazy var captureSession: CaptureSession = CaptureSession()
public private(set) lazy var captureSession: CaptureSession = CaptureSession()
/**
:name: focusLayer
*/
public internal(set) var focusLayer: MaterialLayer?
public private(set) var focusLayer: MaterialLayer?
/**
:name: exposureLayer
*/
public internal(set) var exposureLayer: MaterialLayer?
public private(set) var exposureLayer: MaterialLayer?
/**
:name: resetLayer
*/
public internal(set) var resetLayer: MaterialLayer?
public private(set) var resetLayer: MaterialLayer?
/**
:name: cameraButton
......
......@@ -82,7 +82,7 @@ public class ControlView : MaterialView {
}
/// ContentView that holds the any desired subviews.
public internal(set) var contentView: MaterialView!
public private(set) var contentView: MaterialView!
/// Left side UIControls.
public var leftControls: Array<UIControl>? {
......
......@@ -120,10 +120,10 @@ public class Grid {
}
/// Offsets for rows and columns.
public internal(set) var offset: GridOffset!
public private(set) var offset: GridOffset!
/// The axis in which the Grid is laying out its views.
public internal(set) var axis: GridAxis!
public private(set) var axis: GridAxis!
/// Preset inset value for grid.
public var layoutInsetPreset: MaterialEdgeInset = .None {
......@@ -242,7 +242,7 @@ private var GridKey: UInt8 = 0
/// Grid extension for UIView.
public extension UIView {
/// Grid reference.
public internal(set) var grid: Grid {
public private(set) var grid: Grid {
get {
return MaterialAssociatedObject(self, key: &GridKey) {
return Grid()
......
......@@ -75,7 +75,7 @@ public class ImageCardView : MaterialPulseView {
/**
:name: imageLayer
*/
public internal(set) var imageLayer: CAShapeLayer?
public private(set) var imageLayer: CAShapeLayer?
/**
:name: image
......
......@@ -39,7 +39,7 @@ public class MaterialButton : UIButton {
allows the dropshadow effect on the backing layer, while clipping
the image to a desired shape within the visualLayer.
*/
public internal(set) lazy var visualLayer: CAShapeLayer = CAShapeLayer()
public private(set) lazy var visualLayer: CAShapeLayer = CAShapeLayer()
/**
A base delegate reference used when subclassing MaterialView.
......@@ -47,7 +47,7 @@ public class MaterialButton : UIButton {
public weak var delegate: MaterialDelegate?
/// An Array of pulse layers.
public internal(set) lazy var pulseLayers: Array<CAShapeLayer> = Array<CAShapeLayer>()
public private(set) lazy var pulseLayers: Array<CAShapeLayer> = Array<CAShapeLayer>()
/// The opacity value for the pulse animation.
@IBInspectable public var pulseOpacity: CGFloat = 0.25
......
......@@ -39,7 +39,7 @@ public class MaterialCollectionReusableView : UICollectionReusableView {
allows the dropshadow effect on the backing layer, while clipping
the image to a desired shape within the visualLayer.
*/
public internal(set) lazy var visualLayer: CAShapeLayer = CAShapeLayer()
public private(set) lazy var visualLayer: CAShapeLayer = CAShapeLayer()
/**
A base delegate reference used when subclassing MaterialView.
......@@ -47,7 +47,7 @@ public class MaterialCollectionReusableView : UICollectionReusableView {
public weak var delegate: MaterialDelegate?
/// An Array of pulse layers.
public internal(set) lazy var pulseLayers: Array<CAShapeLayer> = Array<CAShapeLayer>()
public private(set) lazy var pulseLayers: Array<CAShapeLayer> = Array<CAShapeLayer>()
/// The opcaity value for the pulse animation.
@IBInspectable public var pulseOpacity: CGFloat = 0.25
......
......@@ -39,7 +39,7 @@ public class MaterialCollectionViewCell : UICollectionViewCell {
allows the dropshadow effect on the backing layer, while clipping
the image to a desired shape within the visualLayer.
*/
public internal(set) lazy var visualLayer: CAShapeLayer = CAShapeLayer()
public private(set) lazy var visualLayer: CAShapeLayer = CAShapeLayer()
/**
A base delegate reference used when subclassing MaterialView.
......@@ -47,7 +47,7 @@ public class MaterialCollectionViewCell : UICollectionViewCell {
public weak var delegate: MaterialDelegate?
/// An Array of pulse layers.
public internal(set) lazy var pulseLayers: Array<CAShapeLayer> = Array<CAShapeLayer>()
public private(set) lazy var pulseLayers: Array<CAShapeLayer> = Array<CAShapeLayer>()
/// The opcaity value for the pulse animation.
@IBInspectable public var pulseOpacity: CGFloat = 0.25
......
......@@ -48,13 +48,13 @@ public class MaterialCollectionViewLayout : UICollectionViewLayout {
public var contentInset: UIEdgeInsets = UIEdgeInsetsZero
/// Size of the content.
public internal(set) var contentSize: CGSize = CGSizeZero
public private(set) var contentSize: CGSize = CGSizeZero
/// Layout attribute items.
public internal(set) var layoutItems: Array<(UICollectionViewLayoutAttributes, NSIndexPath)> = Array<(UICollectionViewLayoutAttributes, NSIndexPath)>()
public private(set) var layoutItems: Array<(UICollectionViewLayoutAttributes, NSIndexPath)> = Array<(UICollectionViewLayoutAttributes, NSIndexPath)>()
/// Cell data source items.
public internal(set) var dataSourceItems: Array<MaterialDataSourceItem>?
public private(set) var dataSourceItems: Array<MaterialDataSourceItem>?
/// Scroll direction.
public var scrollDirection: UICollectionViewScrollDirection = .Vertical
......
......@@ -41,7 +41,7 @@ public class MaterialLayer : CAShapeLayer {
allows the dropshadow effect on the backing layer, while clipping
the image to a desired shape within the visualLayer.
*/
public internal(set) lazy var visualLayer: CAShapeLayer = CAShapeLayer()
public private(set) lazy var visualLayer: CAShapeLayer = CAShapeLayer()
/// A property that accesses the layer.frame.origin.x property.
@IBInspectable public var x: CGFloat {
......
......@@ -32,7 +32,7 @@ import UIKit
public class MaterialPulseView : MaterialView {
/// An Array of pulse layers.
public internal(set) lazy var pulseLayers: Array<CAShapeLayer> = Array<CAShapeLayer>()
public private(set) lazy var pulseLayers: Array<CAShapeLayer> = Array<CAShapeLayer>()
/// The opcaity value for the pulse animation.
@IBInspectable public var pulseOpacity: CGFloat = 0.25
......
......@@ -181,14 +181,14 @@ public class MaterialSwitch : UIControl {
}
/// Track view reference.
public internal(set) var trackLayer: MaterialLayer {
public private(set) var trackLayer: MaterialLayer {
didSet {
prepareTrack()
}
}
/// Button view reference.
public internal(set) var button: FabButton {
public private(set) var button: FabButton {
didSet {
prepareButton()
}
......
......@@ -38,7 +38,7 @@ public class MaterialTableViewCell : UITableViewCell {
allows the dropshadow effect on the backing layer, while clipping
the image to a desired shape within the visualLayer.
*/
public internal(set) lazy var visualLayer: CAShapeLayer = CAShapeLayer()
public private(set) lazy var visualLayer: CAShapeLayer = CAShapeLayer()
/**
A base delegate reference used when subclassing MaterialView.
......@@ -46,7 +46,7 @@ public class MaterialTableViewCell : UITableViewCell {
public weak var delegate: MaterialDelegate?
/// An Array of pulse layers.
public internal(set) lazy var pulseLayers: Array<CAShapeLayer> = Array<CAShapeLayer>()
public private(set) lazy var pulseLayers: Array<CAShapeLayer> = Array<CAShapeLayer>()
/// The opcaity value for the pulse animation.
@IBInspectable public var pulseOpacity: CGFloat = 0.25
......
......@@ -39,7 +39,7 @@ public class MaterialView : UIView {
allows the dropshadow effect on the backing layer, while clipping
the image to a desired shape within the visualLayer.
*/
public internal(set) lazy var visualLayer: CAShapeLayer = CAShapeLayer()
public private(set) lazy var visualLayer: CAShapeLayer = CAShapeLayer()
/**
A base delegate reference used when subclassing MaterialView.
......
......@@ -39,7 +39,7 @@ public enum MenuDirection {
public class Menu {
/// A Boolean that indicates if the menu is open or not.
public internal(set) var opened: Bool = false
public private(set) var opened: Bool = false
/// The rectangular bounds that the menu animates.
public var origin: CGPoint {
......
......@@ -51,7 +51,7 @@ public extension UIViewController {
@IBDesignable
public class MenuController : UIViewController {
/// Reference to the MenuView.
public internal(set) lazy var menuView: MenuView = MenuView()
public private(set) lazy var menuView: MenuView = MenuView()
/**
A Boolean property used to enable and disable interactivity
......@@ -72,7 +72,7 @@ public class MenuController : UIViewController {
is recommended to use the transitionFromRootViewController
helper method.
*/
public internal(set) var rootViewController: UIViewController!
public private(set) var rootViewController: UIViewController!
/**
An initializer that initializes the object with a NSCoder object.
......
......@@ -39,7 +39,7 @@ public protocol MenuViewDelegate : MaterialDelegate {
public class MenuView : MaterialPulseView {
/// References the Menu instance.
public internal(set) lazy var menu: Menu = Menu()
public private(set) lazy var menu: Menu = Menu()
/**
Prepares the view instance when intialized. When subclassing,
......
......@@ -41,10 +41,10 @@ public class MaterialAssociatedObjectNavigationItem {
public var contentView: UIView?
/// Title label.
public internal(set) var titleLabel: UILabel!
public private(set) var titleLabel: UILabel!
/// Detail label.
public internal(set) var detailLabel: UILabel!
public private(set) var detailLabel: UILabel!
/// Left controls.
public var leftControls: Array<UIControl>?
......
......@@ -32,10 +32,10 @@ import UIKit
public class SearchBar : BarView {
/// The UITextField for the searchBar.
public internal(set) var textField: UITextField!
public private(set) var textField: UITextField!
/// Reference to the clearButton.
public internal(set) var clearButton: IconButton!
public private(set) var clearButton: IconButton!
/// Handle the clearButton manually.
@IBInspectable public var clearButtonAutoHandleEnabled: Bool = true {
......
......@@ -50,7 +50,7 @@ public extension UIViewController {
public class SearchBarController : BarController {
/// Reference to the SearchBar.
public internal(set) var searchBar: SearchBar!
public private(set) var searchBar: SearchBar!
public override func viewWillLayoutSubviews() {
super.viewWillLayoutSubviews()
......
......@@ -127,25 +127,25 @@ public class SideNavigationController : UIViewController, UIGestureRecognizerDel
A UIPanGestureRecognizer property internally used for the
leftView pan gesture.
*/
internal internal(set) var leftPanGesture: UIPanGestureRecognizer?
internal private(set) var leftPanGesture: UIPanGestureRecognizer?
/**
A UIPanGestureRecognizer property internally used for the
rightView pan gesture.
*/
internal internal(set) var rightPanGesture: UIPanGestureRecognizer?
internal private(set) var rightPanGesture: UIPanGestureRecognizer?
/**
A UITapGestureRecognizer property internally used for the
leftView tap gesture.
*/
internal internal(set) var leftTapGesture: UITapGestureRecognizer?
internal private(set) var leftTapGesture: UITapGestureRecognizer?
/**
A UITapGestureRecognizer property internally used for the
rightView tap gesture.
*/
internal internal(set) var rightTapGesture: UITapGestureRecognizer?
internal private(set) var rightTapGesture: UITapGestureRecognizer?
/**
A CGFloat property that accesses the leftView threshold of
......@@ -317,14 +317,14 @@ public class SideNavigationController : UIViewController, UIGestureRecognizerDel
leftViewController. It is very rare that this property will
need to be accessed externally.
*/
public internal(set) var leftView: MaterialView?
public private(set) var leftView: MaterialView?
/**
A MaterialView property that is used to hide and reveal the
rightViewController. It is very rare that this property will
need to be accessed externally.
*/
public internal(set) var rightView: MaterialView?
public private(set) var rightView: MaterialView?
/// Indicates whether the leftView or rightView is opened.
public var opened: Bool {
......@@ -353,31 +353,31 @@ public class SideNavigationController : UIViewController, UIGestureRecognizerDel
is recommended to use the transitionFromRootViewController
helper method.
*/
public internal(set) var rootViewController: UIViewController!
public private(set) var rootViewController: UIViewController!
/**
A UIViewController property that references the
active left UIViewController.
*/
public internal(set) var leftViewController: UIViewController?
public private(set) var leftViewController: UIViewController?
/**
A UIViewController property that references the
active right UIViewController.
*/
public internal(set) var rightViewController: UIViewController?
public private(set) var rightViewController: UIViewController?
/**
A CGFloat property to access the width that the leftView
opens up to.
*/
@IBInspectable public internal(set) var leftViewWidth: CGFloat!
@IBInspectable public private(set) var leftViewWidth: CGFloat!
/**
A CGFloat property to access the width that the rightView
opens up to.
*/
@IBInspectable public internal(set) var rightViewWidth: CGFloat!
@IBInspectable public private(set) var rightViewWidth: CGFloat!
/**
An initializer for the SideNavigationController.
......
......@@ -37,7 +37,7 @@ public enum TabBarLineAlignment {
public class TabBar : MaterialView {
/// A reference to the line UIView.
public internal(set) var line: UIView!
public private(set) var line: UIView!
/// A value for the line alignment.
public var lineAlignment: TabBarLineAlignment = .Bottom {
......
......@@ -73,7 +73,7 @@ public class Text : NSObject {
}
/// TextStorage instance that is observed while editing.
public internal(set) var textStorage: TextStorage = TextStorage()
public private(set) var textStorage: TextStorage = TextStorage()
/// Delegation object for pre and post text processing.
public weak var delegate: TextDelegate?
......
......@@ -35,7 +35,7 @@ public protocol TextFieldDelegate : UITextFieldDelegate {}
@IBDesignable
public class TextField : UITextField {
/// A Boolean that indicates if the TextField is in an animating state.
public internal(set) var animating: Bool = false
public private(set) var animating: Bool = false
/**
This property is the same as clipsToBounds. It crops any of the view's
......@@ -118,7 +118,7 @@ public class TextField : UITextField {
}
/// Reference to the divider.
public internal(set) lazy var divider: CAShapeLayer = CAShapeLayer()
public private(set) lazy var divider: CAShapeLayer = CAShapeLayer()
/// Divider height.
@IBInspectable public var dividerHeight: CGFloat = 1
......@@ -176,7 +176,7 @@ public class TextField : UITextField {
}
/// The placeholder UILabel.
@IBInspectable public internal(set) lazy var placeholderLabel: UILabel = UILabel(frame: CGRectZero)
@IBInspectable public private(set) lazy var placeholderLabel: UILabel = UILabel(frame: CGRectZero)
/// Placeholder textColor.
@IBInspectable public var placeholderColor: UIColor = MaterialColor.darkText.others {
......@@ -205,7 +205,7 @@ public class TextField : UITextField {
public var placeholderVerticalOffset: CGFloat = 0
/// The detailLabel UILabel that is displayed.
@IBInspectable public internal(set) lazy var detailLabel: UILabel = UILabel(frame: CGRectZero)
@IBInspectable public private(set) lazy var detailLabel: UILabel = UILabel(frame: CGRectZero)
/// The detailLabel text value.
......@@ -327,10 +327,10 @@ public class TextField : UITextField {
}
/// A reference to the clearIconButton.
public internal(set) var clearIconButton: IconButton?
public private(set) var clearIconButton: IconButton?
/// A reference to the visibilityIconButton.
public internal(set) var visibilityIconButton: IconButton?
public private(set) var visibilityIconButton: IconButton?
/**
An initializer that initializes the object with a NSCoder object.
......
......@@ -43,7 +43,7 @@ public class Toolbar : BarView {
}
/// Title label.
public internal(set) var titleLabel: UILabel!
public private(set) var titleLabel: UILabel!
/// A convenience property to set the detailLabel text.
public var detail: String? {
......@@ -57,7 +57,7 @@ public class Toolbar : BarView {
}
/// Detail label.
public internal(set) var detailLabel: UILabel!
public private(set) var detailLabel: UILabel!
public override func layoutSubviews() {
super.layoutSubviews()
......
......@@ -69,7 +69,7 @@ public class ToolbarController : BarController {
private var internalFloatingViewController: UIViewController?
/// Reference to the Toolbar.
public internal(set) var toolbar: Toolbar!
public private(set) var toolbar: Toolbar!
/// Delegation handler.
public 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