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 ios26 NumberPad keyboard issue on iPad
This can be used for consistent behavior: if #available(iOS 26.0, *) { textField.allowsNumberPadPopover = false }
Topic: UI Frameworks SubTopic: UIKit
Replies
Boosts
Views
Activity
Jan ’26
Reply to UIBarButtonItem has a lot of constraints warnings
Looks like it fixed in Xcode 26.2
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Dec ’25
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 How to place scrollable header content above a Table in SwiftUI?
It seems to be a UICollectionViewCompositionalLayout. With list configuration for items and section for image and info.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’25
Reply to UIKit flip animation bugged in 26.1
I have exactly the same issue without any code changes. Even compiled with Xcode 16.4
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Nov ’25
Reply to How to get an anchored action sheet without the popover arrow on iOS 26?
This implementation only works with UIBarButtonItem in navigation bar. Here is sample code for UIButton: button.menu = .init(children: [ UIAction(title: "title", handler: { _ in }) ]) button.showsMenuAsPrimaryAction = true
Topic: UI Frameworks SubTopic: UIKit
Replies
Boosts
Views
Activity
Nov ’25
Reply to ITMS-90338: Non-public API usage
We figured it out. The problem was in outlet named searchBar.
Replies
Boosts
Views
Activity
Nov ’24
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