refactored line even more
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
3f7905c0e4
commit
6eb709a1e7
@ -41,12 +41,6 @@ open class Line: View {
|
||||
case horizontal, vertical
|
||||
}
|
||||
|
||||
//--------------------------------------------------
|
||||
// MARK: - Configuration
|
||||
//--------------------------------------------------
|
||||
/// Width of the line.
|
||||
public let lineWidth: CGFloat = 1.0
|
||||
|
||||
//--------------------------------------------------
|
||||
// MARK: - Public Properties
|
||||
//--------------------------------------------------
|
||||
@ -55,9 +49,6 @@ open class Line: View {
|
||||
|
||||
/// Allows to render the line vertically.
|
||||
open var orientation: Orientation = .horizontal { didSet { setNeedsUpdate() } }
|
||||
|
||||
/// Line Color for current Style and Surface.
|
||||
open var lineColor: UIColor { lineViewColorConfiguration.getColor(self) }
|
||||
|
||||
/// The natural size for the receiving view, considering only properties of the view itself.
|
||||
open override var intrinsicContentSize: CGSize {
|
||||
@ -71,6 +62,12 @@ open class Line: View {
|
||||
//--------------------------------------------------
|
||||
// MARK: - Configuration
|
||||
//--------------------------------------------------
|
||||
/// Width of the line.
|
||||
public let lineWidth: CGFloat = 1.0
|
||||
|
||||
/// Line Color for current Style and Surface.
|
||||
open var lineColor: UIColor { lineViewColorConfiguration.getColor(self) }
|
||||
|
||||
/// Color configuration use for text color. This is a configuration that will provide a color based
|
||||
/// of local properties such as style and surface.
|
||||
open var lineViewColorConfiguration: AnyColorable = {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user