Commit e19cd9cb by Daniel Dahan

issue-980: Added @objc to extension properties in Material+UIView.

parent 0223578f
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
* [pr-979](https://github.com/CosmicMind/Material/pull/979): Added `visibilityOff` icon and updated `TextField` to utilize it. * [pr-979](https://github.com/CosmicMind/Material/pull/979): Added `visibilityOff` icon and updated `TextField` to utilize it.
* [issue-982](https://github.com/CosmicMind/Material/issues/982): Updated Icon let declarations to var declarations to allow custom icon sets. * [issue-982](https://github.com/CosmicMind/Material/issues/982): Updated Icon let declarations to var declarations to allow custom icon sets.
* [issue-980](https://github.com/CosmicMind/Material/issues/980): Added `@objc` to extension properties in Material+UIView.
## 2.12.16 ## 2.12.16
......
...@@ -32,6 +32,7 @@ import UIKit ...@@ -32,6 +32,7 @@ import UIKit
extension UIView { extension UIView {
/// A property that accesses the backing layer's shadow /// A property that accesses the backing layer's shadow
@objc
open var shadowColor: UIColor? { open var shadowColor: UIColor? {
get { get {
guard let v = layer.shadowColor else { guard let v = layer.shadowColor else {
...@@ -46,6 +47,7 @@ extension UIView { ...@@ -46,6 +47,7 @@ extension UIView {
} }
/// A property that accesses the layer.borderColor property. /// A property that accesses the layer.borderColor property.
@objc
open var borderColor: UIColor? { open var borderColor: UIColor? {
get { get {
guard let v = layer.borderColor else { guard let v = layer.borderColor else {
...@@ -59,6 +61,7 @@ extension UIView { ...@@ -59,6 +61,7 @@ extension UIView {
} }
/// HeightPreset value. /// HeightPreset value.
@objc
open var heightPreset: HeightPreset { open var heightPreset: HeightPreset {
get { get {
return layer.heightPreset return layer.heightPreset
...@@ -84,6 +87,7 @@ extension UIView { ...@@ -84,6 +87,7 @@ extension UIView {
} }
/// A preset value for Depth. /// A preset value for Depth.
@objc
open var depthPreset: DepthPreset { open var depthPreset: DepthPreset {
get { get {
return layer.depthPreset return layer.depthPreset
...@@ -105,6 +109,7 @@ extension UIView { ...@@ -105,6 +109,7 @@ extension UIView {
/// Enables automatic shadowPath sizing. /// Enables automatic shadowPath sizing.
@IBInspectable @IBInspectable
@objc
open var isShadowPathAutoSizing: Bool { open var isShadowPathAutoSizing: Bool {
get { get {
return layer.isShadowPathAutoSizing return layer.isShadowPathAutoSizing
...@@ -126,6 +131,7 @@ extension UIView { ...@@ -126,6 +131,7 @@ extension UIView {
} }
/// A preset property to set the borderWidth. /// A preset property to set the borderWidth.
@objc
open var borderWidthPreset: BorderWidthPreset { open var borderWidthPreset: BorderWidthPreset {
get { get {
return layer.borderWidthPreset return layer.borderWidthPreset
...@@ -136,14 +142,14 @@ extension UIView { ...@@ -136,14 +142,14 @@ extension UIView {
} }
} }
extension UIView { internal extension UIView {
/// Manages the layout for the shape of the view instance. /// Manages the layout for the shape of the view instance.
internal func layoutShape() { func layoutShape() {
layer.layoutShape() layer.layoutShape()
} }
/// Sets the shadow path. /// Sets the shadow path.
internal func layoutShadowPath() { func layoutShadowPath() {
layer.layoutShadowPath() layer.layoutShadowPath()
} }
} }
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