Compare commits
No commits in common. "230696f4568e27554b708387c1e1971308906843" and "3a21983b98058ca1e1d1ab2ebdea811f42778df3" have entirely different histories.
230696f456
...
3a21983b98
|
@ -1,13 +1,5 @@
|
|||
# Changelog
|
||||
|
||||
## 2024.4 (134)
|
||||
Features/Improvements:
|
||||
- iOS 18: New floating sidebar/tab bar
|
||||
|
||||
Bugfixes:
|
||||
- Fix crash when hashtag search results include duplicates
|
||||
- Fix "no content" text not being removed from list timeline after refreshing
|
||||
|
||||
## 2024.3 (133)
|
||||
- Add additional info to Tip Jar
|
||||
|
||||
|
|
|
@ -45,9 +45,7 @@ class MainTabBarViewController: BaseMainTabBarViewController {
|
|||
embedInNavigationController(Tab.myProfile.createViewController(mastodonController)),
|
||||
]
|
||||
|
||||
#if !os(visionOS)
|
||||
setupFastAccountSwitcher()
|
||||
#endif
|
||||
|
||||
tabBar.isSpringLoaded = true
|
||||
|
||||
|
|
|
@ -91,7 +91,7 @@ final class NewMainTabBarViewController: BaseMainTabBarViewController {
|
|||
]
|
||||
reloadSavedInstances()
|
||||
|
||||
if UIDevice.current.userInterfaceIdiom == .phone || UIDevice.current.userInterfaceIdiom == .vision {
|
||||
if UIDevice.current.userInterfaceIdiom == .phone {
|
||||
self.tabs = [
|
||||
homeTab,
|
||||
notificationsTab,
|
||||
|
@ -121,9 +121,7 @@ final class NewMainTabBarViewController: BaseMainTabBarViewController {
|
|||
NotificationCenter.default.addObserver(self, selector: #selector(reloadSavedInstances), name: .savedInstancesChanged, object: nil)
|
||||
}
|
||||
|
||||
#if !os(visionOS)
|
||||
setupFastAccountSwitcher()
|
||||
#endif
|
||||
}
|
||||
|
||||
private func updatePadTabs() {
|
||||
|
@ -314,9 +312,7 @@ final class NewMainTabBarViewController: BaseMainTabBarViewController {
|
|||
}
|
||||
|
||||
@objc private func sidebarTapped() {
|
||||
#if !os(visionOS)
|
||||
fastAccountSwitcher?.hide()
|
||||
#endif
|
||||
}
|
||||
|
||||
private func showAddList() {
|
||||
|
@ -504,9 +500,6 @@ extension NewMainTabBarViewController: UITabBarController.Sidebar.Delegate {
|
|||
config.imageProperties.maximumSize = CGSize(width: MainSidebarMyProfileCollectionViewCell.avatarImageSize, height: MainSidebarMyProfileCollectionViewCell.avatarImageSize)
|
||||
config.imageProperties.cornerRadius = Preferences.shared.avatarStyle.cornerRadiusFraction * MainSidebarMyProfileCollectionViewCell.avatarImageSize
|
||||
|
||||
#if os(visionOS)
|
||||
item.contentConfiguration = config
|
||||
#else
|
||||
if UIDevice.current.userInterfaceIdiom != .mac {
|
||||
item.accessories = [
|
||||
.customView(configuration: .init(customView: fastAccountSwitcherIndicator, placement: .trailing()))
|
||||
|
@ -517,7 +510,6 @@ extension NewMainTabBarViewController: UITabBarController.Sidebar.Delegate {
|
|||
} else {
|
||||
item.contentConfiguration = config
|
||||
}
|
||||
#endif
|
||||
}
|
||||
return item
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
//
|
||||
|
||||
import UIKit
|
||||
import TuskerPreferences
|
||||
import Combine
|
||||
|
||||
@available(iOS 17.0, *)
|
||||
class AdaptableNavigationController: UIViewController {
|
||||
|
@ -15,7 +15,6 @@ class AdaptableNavigationController: UIViewController {
|
|||
private let viewControllersToPrependInCompact: [UIViewController]
|
||||
|
||||
private var initialViewControllers: [UIViewController] = []
|
||||
private var currentWidescreenNavigationMode: WidescreenNavigationMode?
|
||||
private lazy var regular = makeRegularNavigationController()
|
||||
private lazy var compact = makeCompactNavigationController()
|
||||
private var _current: (any NavigationControllerProtocol)?
|
||||
|
@ -40,8 +39,6 @@ class AdaptableNavigationController: UIViewController {
|
|||
registerForTraitChanges([UITraitHorizontalSizeClass.self]) { (self: AdaptableNavigationController, previousTraitCollection) in
|
||||
self.updateNavigationController()
|
||||
}
|
||||
|
||||
NotificationCenter.default.addObserver(self, selector: #selector(preferencesChanged), name: .preferencesChanged, object: nil)
|
||||
}
|
||||
|
||||
private func updateNavigationController() {
|
||||
|
@ -50,7 +47,6 @@ class AdaptableNavigationController: UIViewController {
|
|||
if let _current {
|
||||
_current.removeViewAndController()
|
||||
stack = _current.viewControllers
|
||||
_current.viewControllers = []
|
||||
isTransferring = true
|
||||
} else {
|
||||
stack = initialViewControllers
|
||||
|
@ -83,7 +79,6 @@ class AdaptableNavigationController: UIViewController {
|
|||
|
||||
private func makeRegularNavigationController() -> any NavigationControllerProtocol {
|
||||
// TODO: need to figure out how to update the navigation controller if the pref changes
|
||||
self.currentWidescreenNavigationMode = Preferences.shared.widescreenNavigationMode
|
||||
switch Preferences.shared.widescreenNavigationMode {
|
||||
case .stack:
|
||||
return EnhancedNavigationViewController()
|
||||
|
@ -97,18 +92,6 @@ class AdaptableNavigationController: UIViewController {
|
|||
private func makeCompactNavigationController() -> any NavigationControllerProtocol {
|
||||
EnhancedNavigationViewController()
|
||||
}
|
||||
|
||||
@objc private func preferencesChanged() {
|
||||
if currentWidescreenNavigationMode != Preferences.shared.widescreenNavigationMode {
|
||||
if let _current,
|
||||
_current === regular {
|
||||
regular = makeRegularNavigationController()
|
||||
updateNavigationController()
|
||||
} else {
|
||||
regular = makeRegularNavigationController()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@available(iOS 17.0, *)
|
||||
|
|
|
@ -87,7 +87,7 @@ class SplitNavigationController: UIViewController {
|
|||
NSLayoutConstraint.activate([
|
||||
rootNav.view.topAnchor.constraint(equalTo: view.topAnchor),
|
||||
rootNav.view.bottomAnchor.constraint(equalTo: view.bottomAnchor),
|
||||
rootNav.view.leadingAnchor.constraint(equalTo: view.safeAreaLayoutGuide.leadingAnchor),
|
||||
rootNav.view.leadingAnchor.constraint(equalTo: view.leadingAnchor),
|
||||
|
||||
separatorView.topAnchor.constraint(equalTo: view.topAnchor),
|
||||
separatorView.bottomAnchor.constraint(equalTo: view.bottomAnchor),
|
||||
|
@ -196,13 +196,13 @@ class SplitNavigationController: UIViewController {
|
|||
NSLayoutConstraint.deactivate(constraints)
|
||||
if visible {
|
||||
constraints = [
|
||||
rootNav.view.trailingAnchor.constraint(equalTo: view.safeAreaLayoutGuide.centerXAnchor),
|
||||
secondaryNav.view.trailingAnchor.constraint(equalTo: view.safeAreaLayoutGuide.trailingAnchor),
|
||||
rootNav.view.trailingAnchor.constraint(equalTo: view.centerXAnchor),
|
||||
secondaryNav.view.trailingAnchor.constraint(equalTo: view.trailingAnchor),
|
||||
]
|
||||
} else {
|
||||
constraints = [
|
||||
rootNav.view.trailingAnchor.constraint(equalTo: view.safeAreaLayoutGuide.trailingAnchor),
|
||||
secondaryNav.view.widthAnchor.constraint(equalTo: rootNav.view.widthAnchor),
|
||||
rootNav.view.trailingAnchor.constraint(equalTo: view.trailingAnchor),
|
||||
secondaryNav.view.widthAnchor.constraint(equalTo: view.widthAnchor, multiplier: 0.5),
|
||||
]
|
||||
}
|
||||
NSLayoutConstraint.activate(constraints)
|
||||
|
|
|
@ -9,8 +9,8 @@
|
|||
// Configuration settings file format documentation can be found at:
|
||||
// https://help.apple.com/xcode/#/dev745c5c974
|
||||
|
||||
MARKETING_VERSION = 2024.4
|
||||
CURRENT_PROJECT_VERSION = 134
|
||||
MARKETING_VERSION = 2024.3
|
||||
CURRENT_PROJECT_VERSION = 133
|
||||
CURRENT_PROJECT_VERSION = $(inherited)$(CURRENT_PROJECT_VERSION_BUILD_SUFFIX_$(CONFIGURATION))
|
||||
|
||||
CURRENT_PROJECT_VERSION_BUILD_SUFFIX_Debug=-dev
|
||||
|
|
Loading…
Reference in New Issue