From 94fcd7bf604d2caa44ae8a04f8dcbe1e955c90c5 Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Mon, 28 Aug 2023 15:15:54 -0500 Subject: [PATCH] refactoed name Signed-off-by: Matt Bruce --- VDS/Components/Notification/Notification.swift | 6 +++--- VDS/Components/Tabs/TabsContainer.swift | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/VDS/Components/Notification/Notification.swift b/VDS/Components/Notification/Notification.swift index 7db1724e..da942ebe 100644 --- a/VDS/Components/Notification/Notification.swift +++ b/VDS/Components/Notification/Notification.swift @@ -114,7 +114,7 @@ open class Notification: View { } open var buttonsView = ButtonGroup().with { - $0.buttonPosition = .left + $0.alignment = .left } //Text @@ -164,7 +164,7 @@ open class Notification: View { set { if !UIDevice.isIPad, newValue == .horizontal { return } _layout = newValue - buttonsView.buttonPosition = _layout == .horizontal ? .center : .left + buttonsView.alignment = _layout == .horizontal ? .center : .left setNeedsUpdate() } get { _layout } @@ -244,7 +244,7 @@ open class Notification: View { subTitleLabel.textStyle = UIDevice.isIPad ? .bodyLarge : .bodySmall buttonsView.reset() - buttonsView.buttonPosition = .left + buttonsView.alignment = .left primaryButtonModel = nil secondaryButtonModel = nil diff --git a/VDS/Components/Tabs/TabsContainer.swift b/VDS/Components/Tabs/TabsContainer.swift index 4c62fd5f..91087770 100644 --- a/VDS/Components/Tabs/TabsContainer.swift +++ b/VDS/Components/Tabs/TabsContainer.swift @@ -13,7 +13,7 @@ open class TabsContainer: View { //-------------------------------------------------- // MARK: - Enums //-------------------------------------------------- - public enum Width { + public enum TabsWidth { case percentage(CGFloat) case value(CGFloat) } @@ -60,10 +60,10 @@ open class TabsContainer: View { open var sticky: Bool = false { didSet { setNeedsUpdate() } } ///rules for width - private var _width: Width = .percentage(0.25) + private var _width: TabsWidth = .percentage(0.25) ///Width of all Tabs when orientation is vertical, defaults to 25%. - open var width: Width { + open var width: TabsWidth { get { return _width }