12,504 questions
0
votes
0
answers
36
views
`UIHostingController` inside transformed `UIView`: SwiftUI text changes font size/position during pinch zoom only in editor screen on iOS 26
Body
I have an iOS app with a board editor built in UIKit. Each board item is a UIView, and some item types (note, date, calendar, countdown) render their content with SwiftUI hosted inside that UIKit ...
0
votes
0
answers
93
views
How to apply corner radius to a Native glass effected UIButton?
What I want:
What I have: (iOS 26.0)
In the lower version of iOS(<26.0) is working good as attach screenshot above but when i run the app on iOS 26.0 it's not applied .glasseffect but when ...
Tooling
1
vote
0
replies
61
views
Liquid Glass UIBarButtonItems background color
So we have a specific scenario where the navigation item background color should be in pink instead of clear or prominent (blue).
So we tried to use a custom UIButton to replace native UIBarButtonItem
...
Advice
0
votes
0
replies
68
views
Replacing a SFSafariViewController in UITests for an iOS app
I have some flows in my iOS app which require us to open an SFSafariViewController. One such example is a login flow which opens the SFSafariViewController for SSO purposes.
We have a UITest which ...
Advice
0
votes
1
replies
52
views
Extract video frames sequentially so each frame represents the next scene segment
I am processing a video and need to extract frames that represent
consecutive portions of the scene.
The requirement is that each extracted frame should correspond to
the next part of the scene ...
-1
votes
1
answer
87
views
iOS - Modern approach for getting the soft keyboard visibility
With the following piece of code, we can have a pretty good idea of when the soft keyboard becomes visible/invisible:
let showingObserver = NotificationCenter.default.addObserver(
forName: ...
-1
votes
0
answers
54
views
How to observe UIKeyboardLayoutGuide.layoutFrame changes
I want to observe the changes in UIKeyboardLayoutGuide.layoutFrame, but using the KVO method, the code inside the layoutObservation block is only called once (when the keyboard is first shown).
guard #...
Advice
0
votes
2
replies
88
views
Putting 2 existing pdf pages side by side (half size) in a new pdf without loosing resolution
In Swift, iOS, I have a pdf file with 2 pages.
I want to put the 2 side by side, on a new page.
For this, I have to scale initial pages half size and rotate .pi/2.
I managed to achieve this by ...
Advice
0
votes
3
replies
94
views
How to call a function from a Button in Swift
I am VERY new to Swift! Pleas have mercy on my basic question.
I'm trying programmatically set up a button. I call a function like so:
override func viewDidLoad() {
super.viewDidLoad()
...
0
votes
1
answer
65
views
Inexplicable white background below SwiftUI Webview
I'm working on a pair of Swift projects, and one of them, running on an iPad, refuses to cooperate with this webview. The image below shows the whitespace below the editor. This only appears when the ...
0
votes
0
answers
45
views
Intrinsic content/system fitting size not propagating up to hosting controller
Overview
I have the following view hierarchy that mixes SwiftUI and UIKit:
AccordionView
└─ VStack
├─ Text
├─ Button
└─ UIViewRepresentable
└─ UIStackView
├─ ...
1
vote
1
answer
320
views
iOS 26, using Swift, how can I group multiple Liquid Glass buttons into a single pill view?
In iOS 26, how can I group multiple Liquid Glass buttons into a single pill view instead of separate buttons that my code currently does.
Note that I need to use UIKit, not SwiftUI.
Below code:
import ...
-1
votes
1
answer
201
views
iOS 26 Liquid Glass: UITabBar overrides selected title text color after trait changes, causing icon and title color mismatch
I’m seeing unexpected UITabBar behavior on iOS 26 when Liquid Glass is enabled.
I’m using UITabBarAppearance with a dynamic UIColor to keep the selected tab bar icon and title text in sync (blue in ...
2
votes
1
answer
261
views
Liquid glass segmented control freezes when dragging handle to a disabled segment
Setup:
I have a segment view with 3 segments, and the last one (at index 2) is disabled.
Issue:
When I drag the liquid glass handle of the segment view from what was previously selected to the ...
0
votes
1
answer
607
views
Issue with Custom Tab Bar Showing Default Liquid Glass Selection on iOS 26.2
I have implemented a custom tab bar, and it works correctly on iOS 18. However, on iOS 26, the Liquid Glass effect displays the default tab selection, which I need to remove. I have tried multiple ...