diff --git a/VDS/Components/Tabs/Tabs.swift b/VDS/Components/Tabs/Tabs.swift index 3113a9fb..15e17f4e 100644 --- a/VDS/Components/Tabs/Tabs.swift +++ b/VDS/Components/Tabs/Tabs.swift @@ -9,17 +9,21 @@ import Foundation import UIKit 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 doesn’t need to be compared. @objc(VDSTabs) open class Tabs: View { //-------------------------------------------------- // MARK: - Enums //-------------------------------------------------- + + /// Layout Axis of the Tabs public enum Orientation: String, CaseIterable{ case vertical case horizontal } - + + /// Position for the Hover Border Accent for a Tab. public enum IndicatorPosition: String, CaseIterable { case top case bottom @@ -33,11 +37,13 @@ open class Tabs: View { } } + //Type of behavior for Scrolling public enum Overflow: String, CaseIterable { case scroll case none } - + + /// Available size for tabs public enum Size: String, CaseIterable { case medium case large @@ -94,8 +100,6 @@ open class Tabs: View { ///Model of the Tabs you are wanting to show. open var tabModels: [TabModel] = [] { didSet { updateTabItems() } } - open var tabSpacing: CGFloat { tabStackView.spacing } - 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)" } - + //update the width based on rules updateWidth() setNeedsLayout() diff --git a/VDS/SupportingFiles/ReleaseNotes.txt b/VDS/SupportingFiles/ReleaseNotes.txt index daebdc87..d65d120e 100644 --- a/VDS/SupportingFiles/ReleaseNotes.txt +++ b/VDS/SupportingFiles/ReleaseNotes.txt @@ -2,6 +2,8 @@ ======= - CXTDT-423133 - Tabs - Indicator should overlap Border - 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 =======