diff --git a/BitwardenShared/UI/Platform/Settings/Settings/Other/OtherSettingsState.swift b/BitwardenShared/UI/Platform/Settings/Settings/Other/OtherSettingsState.swift index 6475def56..f7bf61942 100644 --- a/BitwardenShared/UI/Platform/Settings/Settings/Other/OtherSettingsState.swift +++ b/BitwardenShared/UI/Platform/Settings/Settings/Other/OtherSettingsState.swift @@ -1,10 +1,12 @@ -import Foundation +import UIKit // MARK: - OtherSettingsState /// An object that defines the current state of the `OtherSettingsView`. /// struct OtherSettingsState { + // MARK: Properties + /// The time after which the clipboard should clear. var clearClipboardValue: ClearClipboardValue = .never @@ -19,4 +21,11 @@ struct OtherSettingsState { /// A toast message to show in the view. var toast: Toast? + + // MARK: Computed Properties + + /// Whether the connect to watch toggle should be shown. + var shouldShowConnectToWatchToggle: Bool { + UIDevice.current.model == "iPhone" + } } diff --git a/BitwardenShared/UI/Platform/Settings/Settings/Other/OtherSettingsView.swift b/BitwardenShared/UI/Platform/Settings/Settings/Other/OtherSettingsView.swift index f66ab4bcd..7a5c8e598 100644 --- a/BitwardenShared/UI/Platform/Settings/Settings/Other/OtherSettingsView.swift +++ b/BitwardenShared/UI/Platform/Settings/Settings/Other/OtherSettingsView.swift @@ -24,7 +24,9 @@ struct OtherSettingsView: View { VStack(alignment: .leading, spacing: 8) { clearClipboard - connectToWatch + if store.state.shouldShowConnectToWatchToggle { + connectToWatch + } } } .scrollView(padding: 12)