All Questions
938 questions
0
votes
0
answers
34
views
Dynamic Cell Height (SwiftUI View in UIKit TableView) Weird Animation
I am attempting to adjust the height of a SwiftUIView when pressing the corresponding button. However, the animation that occurs when the height is adjusted does not align with my desired behavior. ...
0
votes
1
answer
40
views
How to apply Content ViewController background to bottom SafeArea in UINavigationController?
While porting my existing UIKit based app to SwiftUI I struggle with a simple task:
A UIViewControllerRepresentable holds a UINavigationController.
The UINavigationController displays VCs with ...
0
votes
1
answer
59
views
How can I access the name of a SwiftUI Screen inside a UIHostingController?
I have the following function to get the name of the topmost view controller in my app:
func topMostViewController() -> String {
guard let rootVC = UIApplication.shared.connectedScenes
....
0
votes
0
answers
35
views
In Firebase A/B test, when selecting metrics in the “Goals” section, no metric (event) comes up
This is the code fragment I use for successful purchases.
let price = (package.storeProduct.price as NSDecimalNumber).doubleValue
let currency = package.storeProduct.priceFormatter?....
1
vote
1
answer
71
views
Which possibility should be used for Strings, which become displayed & translated? [closed]
I'm currently reading about the possibilities, which Swift offers for translating Strings. I would like to choose the right option.
Meanwhile I'm more confused, instead of becoming more sure. There ...
0
votes
1
answer
28
views
Custom Trait with UITraitBridgedEnvironmentKey not writing back to UITraitCollection
I'm trying to create a custom UI trait and a matching bridged SwiftUI environment key in my SwiftUI App.
I want to override the environment key in a swift view and then have that reflect in the ...
0
votes
0
answers
40
views
Rendering a long string in a Text View takes forever
I'm rendering a file in my SwiftUI MacOS app, using an AttributedString for syntax highlighting (the AttributedString is computed outside of the rendering loop). As soon as the file is a bit long (...
0
votes
0
answers
40
views
How to add custom back button with swipe to back gestures in SwiftUI
I want to add custom back button to my app with out losing swipe to back gestures.
Adding this
.navigationBarBackButtonHidden(true)
will remove swipe to back gestures
I tried adding below snippet to ...
1
vote
0
answers
60
views
SwiftUI Preview Fails to Load While Project Builds and Runs Fine: Alamofire Module Map Issue
I'm having an issue specifically with SwiftUI previews in my iOS project. The project builds and runs fine on devices and simulators (in Rosetta mode), but SwiftUI previews fail to load in both ...
0
votes
1
answer
83
views
Missing tab bar after switching tabs when tab bar is hidden in initial tab
I'm experiencing the behaviour outlined below (or see here for a video version). When I navigate programmatically on iPadOS or macOS from a tab that hides the tab bar to another tab, the tab bar ...
0
votes
1
answer
49
views
How to visually display a PKPass without using PKAddPassesViewController?
I am working on a SwiftUI app where I want to display a PKPass visually without using PKAddPassesViewController. The pass needs to be shown in a way that resembles how it would appear in Apple Wallet, ...
0
votes
1
answer
66
views
SwiftUI .fileImporter not working on a real device
I've been running into an issue using .fileImporter in SwiftUI already for a year. On iPhone simulator, Mac Catalyst and real iPad it works as expected, but when it comes to the test on a real iPhone, ...
0
votes
1
answer
118
views
swiftui fileimporter inside UIHostingController
I'm working on an old iOS app that started with objective-C + UIKit and has being migrated to Swift + SwiftUI. Currently its code is mostly Swift + SwiftUI but it has still some objective-C and some ...
0
votes
0
answers
34
views
Custom UISearchController transition
I have an app which has a search bar that appears in the navigation bar and my set up is a hybrid of SwiftUI and UIKit.
I don't think this has bearing on the question at hand but here is my set up:
I ...
0
votes
0
answers
34
views
Presenting search controller from bar button hides elements in screen
I have an app which has a search bar that appears in the navigation bar and my set up is a hybrid of SwiftUI and UIKit.
I don't think this has bearing on the question at hand but here is my set up:
I ...