File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Sources/SparrowKit/UIKit/Extensions Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ extension UIColor {
102102 */
103103 @available ( iOSApplicationExtension, unavailable)
104104 @available ( tvOSApplicationExtension, unavailable)
105- public static var tintColor : UIColor {
105+ public static var tint : UIColor {
106106 get {
107107 let value = UIApplication . shared. windows. first? . tintColor
108108 guard let tint = value else { return . systemBlue }
Original file line number Diff line number Diff line change @@ -131,6 +131,11 @@ extension UIView {
131131 frame. setMaxX ( superview. frame. width - superview. layoutMargins. right)
132132 }
133133
134+ open func setMaxYToSuperviewBottomMargin( ) {
135+ guard let superview = self . superview else { return }
136+ frame. setMaxY ( superview. frame. height - superview. layoutMargins. bottom)
137+ }
138+
134139 /**
135140 SparrowKit: Set center X of current view to medium width of superview.
136141
You can’t perform that action at this time.
0 commit comments