Post

Replies

Boosts

Views

Activity

Reply to Partially disable liquid glass effect from navigation bars but retain on tabbar
@Tmmn Add this code to your collectionView or another scrollView-based class: if #available(iOS 26.0, *) { collectionView.topEdgeEffect.style = .hard } If you want even more old-school style: if #available(iOS 26.0, *) { collectionView.topEdgeEffect.isHidden = true } Configure appearance for navigationItem: let appearance = UINavigationBarAppearance() appearance.configureWithDefaultBackground() appearance.backgroundEffect = UIBlurEffect(style: .systemChromeMaterial) navigationItem.standardAppearance = appearance Also it can be configured globally: UINavigationBar.appearance().standardAppearance = appearance
Topic: UI Frameworks SubTopic: UIKit Tags:
Mar ’26
Reply to How to add view below navigation bar to extend scroll edge effect
[quote='867583022, Jordan, /thread/808436?answerId=867583022#867583022, /profile/Jordan'] That does work thanks! Adding that to the container view of the segmented control seamlessly blends the scroll edge effect across both the navigation bar and custom "bar." [/quote] Hello! In my case, everything works but not as expected. The edge effect only applies around segmentedControl and looks like a shadow. However, if I hide navigationBar, effect extends to the entire width. Could you help me figure out what I'm doing wrong and how to implement this behavior correctly? Thank you!
Topic: UI Frameworks SubTopic: UIKit Tags:
Dec ’25
Reply to [iOS 18] UITabBarController disable new switching animation
final class TabBarController: UITabBarController { override func viewDidLoad() { super.viewDidLoad() if #available(iOS 18.0, *) { delegate = self } } } extension TabBarController: UITabBarControllerDelegate { func tabBarController(_ tabBarController: UITabBarController, animationControllerForTransitionFrom fromVC: UIViewController, to toVC: UIViewController) -> UIViewControllerAnimatedTransitioning? { return self } } extension TabBarController: UIViewControllerAnimatedTransitioning { func transitionDuration(using transitionContext: (any UIViewControllerContextTransitioning)?) -> TimeInterval { return .zero } func animateTransition(using transitionContext: any UIViewControllerContextTransitioning) { guard let view = transitionContext.view(forKey: .to) else { return } let container = transitionContext.containerView container.addSubview(view) transitionContext.completeTransition(true) } }
Topic: UI Frameworks SubTopic: UIKit Tags:
Sep ’24
Reply to Partially disable liquid glass effect from navigation bars but retain on tabbar
@Tmmn Add this code to your collectionView or another scrollView-based class: if #available(iOS 26.0, *) { collectionView.topEdgeEffect.style = .hard } If you want even more old-school style: if #available(iOS 26.0, *) { collectionView.topEdgeEffect.isHidden = true } Configure appearance for navigationItem: let appearance = UINavigationBarAppearance() appearance.configureWithDefaultBackground() appearance.backgroundEffect = UIBlurEffect(style: .systemChromeMaterial) navigationItem.standardAppearance = appearance Also it can be configured globally: UINavigationBar.appearance().standardAppearance = appearance
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Mar ’26
Reply to UIKit: readableContentGuide is too wide on iPads iOS 26.x
I have absolutely the same feel. But it looks like it was meant to be that way (according to system applications). Also collapsing the sidebar increases width slightly, causing an unwanted layout resizing. In iOS 18 and earlier readableContentGuide was less wider and always identical with & without the sidebar.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Jan ’26
Reply to How to add view below navigation bar to extend scroll edge effect
[quote='867583022, Jordan, /thread/808436?answerId=867583022#867583022, /profile/Jordan'] That does work thanks! Adding that to the container view of the segmented control seamlessly blends the scroll edge effect across both the navigation bar and custom "bar." [/quote] Hello! In my case, everything works but not as expected. The edge effect only applies around segmentedControl and looks like a shadow. However, if I hide navigationBar, effect extends to the entire width. Could you help me figure out what I'm doing wrong and how to implement this behavior correctly? Thank you!
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Dec ’25
Reply to [iOS 18] UITabBarController disable new switching animation
final class TabBarController: UITabBarController { override func viewDidLoad() { super.viewDidLoad() if #available(iOS 18.0, *) { delegate = self } } } extension TabBarController: UITabBarControllerDelegate { func tabBarController(_ tabBarController: UITabBarController, animationControllerForTransitionFrom fromVC: UIViewController, to toVC: UIViewController) -> UIViewControllerAnimatedTransitioning? { return self } } extension TabBarController: UIViewControllerAnimatedTransitioning { func transitionDuration(using transitionContext: (any UIViewControllerContextTransitioning)?) -> TimeInterval { return .zero } func animateTransition(using transitionContext: any UIViewControllerContextTransitioning) { guard let view = transitionContext.view(forKey: .to) else { return } let container = transitionContext.containerView container.addSubview(view) transitionContext.completeTransition(true) } }
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Sep ’24