Search results for

Swift 6

49,201 results found

Post

Replies

Boosts

Views

Activity

Reply to iOS 26 Beta breaks scroll/gesture in SwiftUI chat (worked in iOS 18): Simultaneous gestures & ScrollViewReader issues
I can confirm the same issue on iOS 26 beta 6. We have been using simultaneousGesture() as a workaround for the well-known bug, which is the same one BAR115 mentioned earlier. However, this workaround appears to be broken as well. At the moment, it seems there is no reliable way to use buttons inside sheets. This is just ridiculous.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
2w
Reply to The App's expiry date earlier than the expiry date of Provisioning Profile
The provisioning profile we are using is for in-house development. We understand that normally the in-house provisioning profiles expire after a year. However, after we rebuild and redistribute our app, the new in-house provisioning profile's expiration date cannot be updated. We tried to rebuild and redistribute the app in Jul 2025 and Aug 2025. The in-house provisioning profile expiration date still keeps on 6 May 2026, which is less than a year. Is there any other way to clear the cache (?) or update the expiration date of the in-house provisioning profiles?
Topic: Business & Education SubTopic: General Tags:
3w
Reply to Icon composer icon contains alpha channel upload error
@DTS Engineer Thank you so much for your reply. The issue persisted on Beta 5 so used the old-style icon export into Asset / AppIcon in place of the nice Icon Composer-made icon. But, I will test on Beta 6. If it still persists, will file a bug report. Looking forward to this being resolved in an upcoming build. Have enjoyed using Icon Composer - it makes creating wholesome icons a breeze. —Siddharth
3w
How can I get a Subscriber to subscribe to get only 4 elements from an array?
Hello, I am trying to implement a subscriber which specifies its own demand for how many elements it wants to receive from a publisher. My code is below: import Combine var array = [1, 2, 3, 4, 5, 6, 7] struct ArraySubscriber: Subscriber { typealias Input = T typealias Failure = Never let combineIdentifier = CombineIdentifier() func receive(subscription: any Subscription) { subscription.request(.max(4)) } func receive(_ input: T) -> Subscribers.Demand { print(input,, input) return .max(4) } func receive(completion: Subscribers.Completion) { switch completion { case .finished: print(publisher finished normally) case .failure(let failure): print(publisher failed due to, , failure) } } } let subscriber = ArraySubscriber() array.publisher.subscribe(subscriber) According to Apple's documentation, I specify the demand inside the receive(subscription: any Subscription) method, see link. But when I run this code I get the following output: input, 1 input, 2 input, 3 input, 4 input, 5 input, 6 inp
0
0
94
3w
Reply to mTLS : Guidance on Generating SecIdentity with Existing Private Key and Certificate
I’m presuming you want the resulting digital identity to be persistent, that is, to survive your app being terminated and relaunched. If so, you need to store the private key and the certificate somewhere, and the best place for storing credentials like this is the keychain. Standard practice here is: Generate the private key in the keychain. Derive the public key from the private key. Export the public key bits and send that your certificate issuing infrastructure. Get back the certificate. Add that to your keychain. Get a digital identity from the keychain. There are various APIs to support this: In step 1, use SecKeyCreateRandomKey. In step 2, use SecKeyCopyPublicKey. In step 3, use SecKeyCopyExternalRepresentation. In step 4, if the server sends you back a PEM, you’ll need to decode that to get a DER. You can then import that using SecCertificateCreateWithData. In step 5, use SecItemAdd. In step 6, use SecItemCopyMatching. We have a bunch of resources that can help with this. I recommend that you
3w
[iOS 26 Beta] BGTaskScheduler.supportedResources incorrectly reports no GPU support for BGContinuedProcessingTask on capable hardware
Testing Environment: iOS: 26.0 Beta 7 Xcode: Beta 6 Description: We are implementing the new BGContinuedProcessingTask API introduced in iOS 26. We have followed the official documentation and WWDC session guidance to configure our project. The Background Modes (processing) and Background GPU Access capabilities have been added in Xcode. The com.apple.developer.background-tasks.continued-processing.gpu entitlement is present and set to in the .entitlements file. The provisioning profile details viewed within Xcode explicitly show that the Background GPU Access capability and the corresponding entitlement are included. Despite this correct configuration, when running the app on supported hardware (iPhone 16 Pro), a call to BGTaskScheduler.supportedResources.contains(.gpu) consistently returns false. This prevents us from setting request.requiredResources = .gpu. As a result, when the BGContinuedProcessingTask starts without the GPU resource flag, our internal Metal-based exporter attempts to access th
3
0
106
3w
iPhone app Liquid Glass icon on iPad not respecting icon display mode
Hi, I'm updating my iPhone app (iPhone only) to be ready with iOS 26. I'm building my app using Xcode 26.0 beta 6 (17A5305f) and testing it on an iPad running iPadOS 26 (23A5326a). I found an issue with my new app icon updated using Icon Composer and I was able to find the issue. An iPhone only app running on iPadOS 26 doesn't use the provided app icon. It always displays the standard light icon. I just added iPad in Supported Destinations and the app icon now respect light/dark/translucent/tinted modes on the Home Screen. I submitted feedback FB19768667
1
0
139
3w