updated notes

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2023-06-08 15:40:55 -05:00
parent 3b264d2355
commit c1c57084cb
2 changed files with 11 additions and 5 deletions

View File

@ -9,17 +9,21 @@ import Foundation
import UIKit import UIKit
import VDSColorTokens import VDSColorTokens
/// Tabs are organizational components that group content and allow customers to navigate its display. Use them to separate content when the content is related but doesnt need to be compared.
@objc(VDSTabs) @objc(VDSTabs)
open class Tabs: View { open class Tabs: View {
//-------------------------------------------------- //--------------------------------------------------
// MARK: - Enums // MARK: - Enums
//-------------------------------------------------- //--------------------------------------------------
/// Layout Axis of the Tabs
public enum Orientation: String, CaseIterable{ public enum Orientation: String, CaseIterable{
case vertical case vertical
case horizontal case horizontal
} }
/// Position for the Hover Border Accent for a Tab.
public enum IndicatorPosition: String, CaseIterable { public enum IndicatorPosition: String, CaseIterable {
case top case top
case bottom case bottom
@ -33,11 +37,13 @@ open class Tabs: View {
} }
} }
//Type of behavior for Scrolling
public enum Overflow: String, CaseIterable { public enum Overflow: String, CaseIterable {
case scroll case scroll
case none case none
} }
/// Available size for tabs
public enum Size: String, CaseIterable { public enum Size: String, CaseIterable {
case medium case medium
case large case large
@ -94,8 +100,6 @@ open class Tabs: View {
///Model of the Tabs you are wanting to show. ///Model of the Tabs you are wanting to show.
open var tabModels: [TabModel] = [] { didSet { updateTabItems() } } open var tabModels: [TabModel] = [] { didSet { updateTabItems() } }
open var tabSpacing: CGFloat { tabStackView.spacing }
open var tabViews: [Tab] = [] open var tabViews: [Tab] = []
//-------------------------------------------------- //--------------------------------------------------
@ -265,7 +269,7 @@ open class Tabs: View {
tabItem.accessibilityLabel = "\(tabItem.text) \(tabItem.selected ? "selected" : "unselected") \(index+1) of \(tabViews.count)" tabItem.accessibilityLabel = "\(tabItem.text) \(tabItem.selected ? "selected" : "unselected") \(index+1) of \(tabViews.count)"
} }
//update the width based on rules
updateWidth() updateWidth()
setNeedsLayout() setNeedsLayout()

View File

@ -2,6 +2,8 @@
======= =======
- CXTDT-423133 - Tabs - Indicator should overlap Border - CXTDT-423133 - Tabs - Indicator should overlap Border
- CXTDT-423092 - Tabs - Top-aligned version should have line top also - CXTDT-423092 - Tabs - Top-aligned version should have line top also
- CXTDT-423141 - Tabs - Incorrect spacing on top-aligned Fill containe
- CXTDT-422872 - Text Link - spacing issue between text and underline
1.0.21 1.0.21
======= =======