updated enums
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
d90045918b
commit
5e229780f5
@ -22,12 +22,12 @@ public struct TabModel {
|
||||
}
|
||||
|
||||
public class Tabs: View {
|
||||
public enum Orientation {
|
||||
public enum Orientation: String, CaseIterable{
|
||||
case vertical
|
||||
case horizontal
|
||||
}
|
||||
|
||||
public enum IndicatorPosition {
|
||||
public enum IndicatorPosition: String, CaseIterable {
|
||||
case top
|
||||
case bottom
|
||||
|
||||
@ -40,12 +40,12 @@ public class Tabs: View {
|
||||
}
|
||||
}
|
||||
|
||||
public enum Overflow {
|
||||
public enum Overflow: String, CaseIterable {
|
||||
case scroll
|
||||
case none
|
||||
}
|
||||
|
||||
public enum Size {
|
||||
public enum Size: String, CaseIterable {
|
||||
case medium
|
||||
case large
|
||||
|
||||
@ -194,7 +194,7 @@ public class Tabs: View {
|
||||
if orientation == .horizontal {
|
||||
borderLineLayer.frame = CGRect(x: 0, y: bounds.height - 1, width: bounds.width, height: 1)
|
||||
} else {
|
||||
borderLineLayer.frame = CGRect(x: bounds.width - 1, y: 0, width: 1, height: bounds.height)
|
||||
borderLineLayer.frame = CGRect(x: 0, y: 0, width: 1, height: bounds.height)
|
||||
}
|
||||
|
||||
layer.addSublayer(borderLineLayer)
|
||||
@ -222,7 +222,7 @@ public class Tabs: View {
|
||||
let contentWidth = contentView.systemLayoutSizeFitting(UIView.layoutFittingCompressedSize).width
|
||||
scrollView.contentSize = CGSize(width: contentWidth, height: scrollView.bounds.height)
|
||||
|
||||
//addDebugBorder(color: .blue)
|
||||
addDebugBorder(color: .blue)
|
||||
}
|
||||
}
|
||||
|
||||
@ -338,11 +338,11 @@ public class TabItem: View {
|
||||
}
|
||||
}
|
||||
|
||||
// public override func draw(_ rect: CGRect) {
|
||||
// super.draw(rect)
|
||||
//
|
||||
// addDebugBorder(color: .green)
|
||||
// }
|
||||
public override func draw(_ rect: CGRect) {
|
||||
super.draw(rect)
|
||||
|
||||
addDebugBorder(color: .green)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user