Skip to content

Commit

Permalink
Merge pull request #54 from thefuntasty/feature/refactor-extension-ac…
Browse files Browse the repository at this point in the history
…cess

Refactor extension access
  • Loading branch information
mkj-is authored Jan 21, 2019
2 parents 6460e3a + 5450de4 commit c7f65c6
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Sources/Extensions/UIView+Extensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
import UIKit

@IBDesignable
public extension UIView {
extension UIView {

// MARK: - Corner radius

@IBInspectable var cornerRadius: CGFloat {
@IBInspectable open var cornerRadius: CGFloat {
get {
return layer.cornerRadius
}
Expand All @@ -24,7 +24,7 @@ public extension UIView {

// MARK: - Shadow

@IBInspectable var shadowColor: UIColor? {
@IBInspectable open var shadowColor: UIColor? {
get {
return layer.shadowColor.flatMap(UIColor.init)
}
Expand All @@ -33,7 +33,7 @@ public extension UIView {
}
}

@IBInspectable var shadowOffset: CGSize {
@IBInspectable open var shadowOffset: CGSize {
get {
return layer.shadowOffset
}
Expand All @@ -42,7 +42,7 @@ public extension UIView {
}
}

@IBInspectable var shadowRadius: CGFloat {
@IBInspectable open var shadowRadius: CGFloat {
get {
return layer.shadowRadius
}
Expand All @@ -51,7 +51,7 @@ public extension UIView {
}
}

@IBInspectable var shadowOpacity: Float {
@IBInspectable open var shadowOpacity: Float {
get {
return layer.shadowOpacity
}
Expand All @@ -62,7 +62,7 @@ public extension UIView {

// MARK: - Border

@IBInspectable var borderWidth: CGFloat {
@IBInspectable open var borderWidth: CGFloat {
get {
return layer.borderWidth
}
Expand All @@ -71,7 +71,7 @@ public extension UIView {
}
}

@IBInspectable var borderColor: UIColor? {
@IBInspectable open var borderColor: UIColor? {
get {
return layer.borderColor.flatMap(UIColor.init)
}
Expand Down

0 comments on commit c7f65c6

Please sign in to comment.