SwiftUI hide TabBar in subview
iOS 16 native way .toolbar(.hidden, for: .tabBar)
iOS 16 native way .toolbar(.hidden, for: .tabBar)
MasterChief96, you are not alone. Here is my setup: MacOS 10.15.3 Xcode 11.4.1 I create a brand new SwiftUI “Hello World” project, enable Mac as a target device, a.k.a. Catalyst. I set the iOS deployment target to 13.2 (otherwise I get a MacOS runtime error saying I need Catalina 10.15.4) Set the scheme to “My … Read more
I’m having the same logs (Using Xcode Beta 3). I think it might be something with current Xcode 12 beta version. Edit: Those logs are not appearing anymore to me. Xcode 12.0.1 (12A7300)
Finally figured out a solution/workaround to this issue. If you remove the property wrapper from the subclass, and call the baseclass objectWillChange.send() on the variable the state is updated properly. NOTE: Do not redeclare let objectWillChange = PassthroughSubject<Void, Never>() on the subclass as that will again cause the state not to update properly. I hope … Read more
Step 1: Create instances of UIHostingController by using SwiftUI View struct ContentView : View { var body: some View { VStack { Text(“Test”) Text(“Test2”) } } } var child = UIHostingController(rootView: ContentView()) Step 2: Add instance of UIHostingController as a child view controller to Any UIKit ViewController var parent = UIViewController() child.view.translatesAutoresizingMaskIntoConstraints = false child.view.frame … Read more
I had the same issue. Disabling AVX/AVX2 solved for me. VBoxManage setextradata “$vm_name” VBoxInternal/CPUM/IsaExts/AVX 0 VBoxManage setextradata “$vm_name” VBoxInternal/CPUM/IsaExts/AVX2 0
All of the asked situations are now supported in iOS 15 Destructive: (works from iOS 15) Set .destructive as the role argument of the button: Button(role: .destructive) { // 👈 This argument // delete something } label: { Label(“Delete”, systemImage: “trash”) } Disabled: (works from iOS 14.2) Add .disabled modifier to the button. Button { … Read more
This happens when the watchdog kills the application due to some reason. we can check the logs in the Analytic & Improvement section
The SDK now provides UISearchBar.searchTextField so you can simply replace your private API implementation with the public API. searchBar.searchTextField.backgroundColor = [UIColor blueColor];
Swift 5, iOS 13, but compatible with older versions of iOS: extension UIWindow { static var isLandscape: Bool { if #available(iOS 13.0, *) { return UIApplication.shared.windows .first? .windowScene? .interfaceOrientation .isLandscape ?? false } else { return UIApplication.shared.statusBarOrientation.isLandscape } } } Usage: if (UIWindow.isLandscape) { print(“Landscape”) } else { print(“Portrait”) }