Hello everybody,
I've been implementing new SwiftUI screens in my project integrated with my storyboard.
I have one main storyboard with an UITabBarController and some others UIViewControllers as Root ViewControllers. Now, I'm creating a new view, with SwiftUI and HostingViewController, but I realised this view is called before the didFinishLaunchingWithOptions from AppDelegate.
I initialise my SwiftUI View in required init inside the HostingViewController like some tutorials, but how can I create this screen without this problem? I tried initialise this view outside of init, but I've received other errors.
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
I'm testing some combinations of universal link on my app, but im facing a lot of issues because of caching from AASA (apple-app-site-association) on device. What can I do to refresh this file on iOS?
Hello everyone, I'm trying to integrate a SwiftUI TextField component into a UIViewController. But any kind of tutorial I've seen, have this implementation:
let childView = UIHostingController(rootView: SwiftUIView())
addChild(childView)
childView.view.frame = frame
view.addSubview(childView.view)
childView.didMove(toParent: self)
But, when I do this, my Navigation Bar disappear. But when I remove the "addChild" peace of code, everything works well. Is this a wrong thing to do? Can I remove this part of code?
I’m developing a new widget with network connection that will make one connection per minute. However, I saw many tutorials that handle networks-related tasks inside the WidgetProvider, while others perform these tasks periodically in the background of the app.
Which option is the most recommended? Is there a right one?