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
|
case horizontal, vertical
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------
|
|
||||||
// MARK: - Configuration
|
|
||||||
//--------------------------------------------------
|
|
||||||
/// Width of the line.
|
|
||||||
public let lineWidth: CGFloat = 1.0
|
|
||||||
|
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
// MARK: - Public Properties
|
// MARK: - Public Properties
|
||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
@ -55,9 +49,6 @@ open class Line: View {
|
|||||||
|
|
||||||
/// Allows to render the line vertically.
|
/// Allows to render the line vertically.
|
||||||
open var orientation: Orientation = .horizontal { didSet { setNeedsUpdate() } }
|
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.
|
/// The natural size for the receiving view, considering only properties of the view itself.
|
||||||
open override var intrinsicContentSize: CGSize {
|
open override var intrinsicContentSize: CGSize {
|
||||||
@ -71,6 +62,12 @@ open class Line: View {
|
|||||||
//--------------------------------------------------
|
//--------------------------------------------------
|
||||||
// MARK: - Configuration
|
// 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
|
/// Color configuration use for text color. This is a configuration that will provide a color based
|
||||||
/// of local properties such as style and surface.
|
/// of local properties such as style and surface.
|
||||||
open var lineViewColorConfiguration: AnyColorable = {
|
open var lineViewColorConfiguration: AnyColorable = {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user