session-ios/SignalUtilitiesKit/Utilities/UIView+Utilities.swift

24 lines
562 B
Swift
Raw Permalink Normal View History

2020-11-09 06:03:59 +01:00
import SessionUIKit
public extension UIView {
static func hSpacer(_ width: CGFloat) -> UIView {
let result = UIView()
result.set(.width, to: width)
return result
}
static func vSpacer(_ height: CGFloat) -> UIView {
let result = UIView()
result.set(.height, to: height)
return result
}
static func separator() -> UIView {
let result = UIView()
result.set(.height, to: Values.separatorThickness)
result.backgroundColor = Colors.separator
return result
}
}