diff --git a/Sources/TabBar/Common/Preferences/TabBarVisibility.swift b/Sources/TabBar/Common/Preferences/TabBarVisibility.swift index 3a18cf0..a18564e 100644 --- a/Sources/TabBar/Common/Preferences/TabBarVisibility.swift +++ b/Sources/TabBar/Common/Preferences/TabBarVisibility.swift @@ -51,11 +51,6 @@ public enum TabBarVisibility: CaseIterable { state: `visible` will become `invisible` and vice versa. */ public mutating func toggle() { - switch self { - case .visible: - self = .invisible - case .invisible: - self = .visible - } + self = self == .visible ? .invisible : .visible } }