mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:06:00 +00:00
Even more space tweaks (#4588)
* Bring back the button to share a space on iOS 26. * Remove the setting and disable the space tab on iOS 17. (The tab bar is broken on iPadOS 17).
This commit is contained in:
@@ -38,7 +38,10 @@ import SwiftUI
|
||||
}
|
||||
|
||||
func barVisibility(in horizontalSizeClass: UserInterfaceSizeClass?) -> Visibility {
|
||||
if let barVisibilityOverride {
|
||||
if #unavailable(iOS 18.0) {
|
||||
// There are glitches with the tab bar on iPadOS 17, so disable the tab bar until we have fixed it.
|
||||
.hidden
|
||||
} else if let barVisibilityOverride {
|
||||
barVisibilityOverride
|
||||
} else if horizontalSizeClass == .compact, navigationSplitCoordinator?.detailCoordinator != nil {
|
||||
// Whilst we support pushing screens on the stack in the sidebarCoordinator, in practice
|
||||
|
||||
@@ -61,7 +61,6 @@ final class AppSettings {
|
||||
case enableKeyShareOnInvite
|
||||
case knockingEnabled
|
||||
case threadsEnabled
|
||||
case spacesEnabled
|
||||
case developerOptionsEnabled
|
||||
case nextGenHTMLParserEnabled
|
||||
case linkPreviewsEnabled
|
||||
@@ -390,9 +389,6 @@ final class AppSettings {
|
||||
@UserPreference(key: UserDefaultsKeys.threadsEnabled, defaultValue: false, storageType: .userDefaults(store))
|
||||
var threadsEnabled
|
||||
|
||||
@UserPreference(key: UserDefaultsKeys.spacesEnabled, defaultValue: true, storageType: .userDefaults(store))
|
||||
var spacesEnabled
|
||||
|
||||
@UserPreference(key: UserDefaultsKeys.nextGenHTMLParserEnabled, defaultValue: true, storageType: .userDefaults(store))
|
||||
var nextGenHTMLParserEnabled
|
||||
|
||||
|
||||
Reference in New Issue
Block a user