SwiftUI on iOS 15, strange warning of [UICollectionViewRecursion] when using contextMenu [closed]
SwiftUI on iOS 15, strange warning of [UICollectionViewRecursion] when using contextMenu [closed]
SwiftUI on iOS 15, strange warning of [UICollectionViewRecursion] when using contextMenu [closed]
iOS 15 changed trusted application position to: Settings -> General -> VPN & Device Management Then you can see your application under the Developer App, click it and verify it.
You need tell Xcode what exactly should be animated! With given a variable that conform to Equatable protocol. That could be State or Binding or any other wrapper that allow you to update the value of it. Example: struct ContentView: View { @State private var offset: CGFloat = 200.0 var body: some View { Image(systemName: … Read more
Since iOS 15, UITableView contains a new property called sectionHeaderTopPadding which specifies the amount of padding above each section header. tableView.sectionHeaderTopPadding = 0.0 Note: This applies only to the UITableView.Style.plain.
(Tested with iOS 15.2 running on Xcode 13.2.1) Improving on Rachid’s answer, here is a Swiftier version: extension UIApplication { var keyWindow: UIWindow? { // Get connected scenes return UIApplication.shared.connectedScenes // Keep only active scenes, onscreen and visible to the user .filter { $0.activationState == .foregroundActive } // Keep only the first `UIWindowScene` .first(where: { … Read more
I had this problem surface in Xcode 13.0. Mohamed Tarek‘s solution worked for me, but… I was using cocoapods, so I needed a solution not blown away by pod install; or more specifically fixed with pod install. Adding the following to the bottom of the Podfile resolved it. post_install do |installer| installer.pods_project.targets.each do |target| target.build_configurations.each … Read more
I had the same problem updating Xcode. Solve just logging back into Xcode. Open Xcode Open the project’s Runner.xcworkspace file Log into Xcode at: “Signing & Capabilities” -> “All” -> “Signing” Item 3 was my problem. When updating Xcode, I was logged out.
Without updating Xcode, you need to put the relevant device file in the DeviceSupport section and run Xcode again. DeviceSupport files are located here. /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport https://github.com/filsv/iPhoneOSDeviceSupport You can download iOS15 devicesupport file from here, then you need to unzip, then you need to put it in DeviceSupport section on your mac. When you restart Xcode, … Read more
I had the same issue and found the same link that is in your question. I used the same approach for the tab bar. This is the code i am using and it works perfectly. if #available(iOS 15.0, *) { let appearance = UITabBarAppearance() appearance.configureWithOpaqueBackground() appearance.backgroundColor = customColor self.tabController.tabBar.standardAppearance = appearance self.tabController.tabBar.scrollEdgeAppearance = view.standardAppearance }
To use your own colour scheme, use the following: Swift // White non-transucent navigatio bar, supports dark appearance if #available(iOS 15, *) { let appearance = UINavigationBarAppearance() appearance.configureWithOpaqueBackground() UINavigationBar.appearance().standardAppearance = appearance UINavigationBar.appearance().scrollEdgeAppearance = appearance } Objective-c if (@available(iOS 15.0, *)) { UINavigationBarAppearance *navBarAppearance = [[UINavigationBarAppearance alloc] init]; navBarAppearance.backgroundColor = [UIColor redColor]; [navBarAppearance configureWithOpaqueBackground]; [UINavigationBar appearance].standardAppearance … Read more