Post

Replies

Boosts

Views

Activity

Is there a way to remove the gradient layer from the iOS 26 navigation bar?
On my app, some custom views are behind the navigation bar. On systems below iOS 26, I use this code to make the navigation bar transparent: self.navigationController.navigationBar.translucent = YES; self.navigationController.navigationBar.barTintColor = [UIColor clearColor]; [self.navigationController.navigationBar setBackgroundImage:[[UIImage alloc] init] forBarMetrics:UIBarMetricsDefault]; [self.navigationController.navigationBar setShadowImage:[[UIImage alloc] init]]; It works fine and the custom views show up well. But on iOS 26, the navigation bar adds a gradient layer, so the custom views get blocked, which looks a bit weird. Is there a way to remove the gradient layer from the iOS 26 navigation bar?
Topic: UI Frameworks SubTopic: UIKit Tags:
1
0
31
3h
Is there a way to remove the gradient layer from the iOS 26 navigation bar?
On my app, some custom views are behind the navigation bar. On systems below iOS 26, I use this code to make the navigation bar transparent: self.navigationController.navigationBar.translucent = YES; self.navigationController.navigationBar.barTintColor = [UIColor clearColor]; [self.navigationController.navigationBar setBackgroundImage:[[UIImage alloc] init] forBarMetrics:UIBarMetricsDefault]; [self.navigationController.navigationBar setShadowImage:[[UIImage alloc] init]]; It works fine and the custom views show up well. But on iOS 26, the navigation bar adds a gradient layer, so the custom views get blocked, which looks a bit weird. Is there a way to remove the gradient layer from the iOS 26 navigation bar?
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
1
Boosts
0
Views
31
Activity
3h
Can Xcode15 compile on an iPhone of iOS18?
Can Xcode15 compile on an iPhone of iOS18?I want to update my iPhone to iOS18, but I do not want to update my Xcode.
Replies
1
Boosts
0
Views
3.0k
Activity
Oct ’24