Commit ed874c9e by Daniel Dahan

updated access to layout methods for shadow and shape

parent eb1bd56f
...@@ -399,7 +399,7 @@ public extension UIView { ...@@ -399,7 +399,7 @@ public 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() { public func layoutShape() {
if .circle == shapePreset { if .circle == shapePreset {
let w: CGFloat = (width / 2) let w: CGFloat = (width / 2)
if w != cornerRadius { if w != cornerRadius {
...@@ -409,7 +409,7 @@ public extension UIView { ...@@ -409,7 +409,7 @@ public extension UIView {
} }
/// Sets the shadow path. /// Sets the shadow path.
internal func layoutShadowPath() { public func layoutShadowPath() {
if isShadowPathAutoSizing { if isShadowPathAutoSizing {
if .none == depthPreset { if .none == depthPreset {
shadowPath = nil shadowPath = nil
......
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