Hi, I’m working with CPGridTemplate in CarPlay. According to the documentation, it supports up to 9 CPGridButton objects and should display them in a grid (up to 3×3). However, I’ve run into two issues: Row instead of grid When I add 4–6 buttons, they don’t appear in a 2×2 or 2×3 grid. Instead, they are shown in a single horizontal row. Even 9 buttons do not appear in a 3x3 grid. More than 9 buttons My use case requires more than 9 icons, but it looks like CPGridTemplate ignores any additional buttons beyond the first 9. Is there any supported way to display more than 9 buttons in a grid, or is pagination/multiple templates the only option? Thanks in advance!
Search results for
Swift 6
49,208 results found
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
That cannot work, unfortunately. I tested for the event rawValue, to no avail, even after changing event type in the @objC: @objc func handleButtonEvent(_ sender: UIButton, forEvent event: UIControl.Event) { touchDown 1 touchDownRepeat 2 touchDragInside 4 touchDragOutside 8 touchDragEnter 16 touchDragExit 32 TouchUpInside 64 touchUpOutside 128 TouchCancel 256 PrimaryActionTriggered 8192 As explained here: https://stackoverflow.com/questions/31122418/in-swift-how-do-you-detect-which-uicontrolevents-triggered-the-action Curiously, none of the action selector parameters provide any way to learn which control event triggered the current action selector call! Thus, for example, to distinguish a Touch Up Inside control event from a Touch Up Outside control event, their corresponding target–action pairs must specify two different action handlers; if you dispatch them to the same action handler, that handler cannot discover which control event occurred. So you have to create a target action for each event.
Topic:
UI Frameworks
SubTopic:
UIKit
Tags:
Hi. We are writing to report a critical issue we've encountered following the recent release of iOS 26 beta 6. After updating our test devices, we discovered that our application is no longer able to establish HTTPS connections to several of our managed FQDNs. This issue was not present in beta 5 and appears to be a direct result of changes introduced in beta 6. The specific FQDNs that are currently unreachable are: d.socdm.com i.socdm.com tg.scodm.com We have reviewed the official iOS & iPadOS 26 Beta 6 Release Notes, particularly the updates related to TLS. While the notes mention changes, we have confirmed that our servers for all affected FQDNs support TLS 1.2, so we believe they should still be compliant. We have also investigated several of Apple's support documents regarding TLS connection requirements (e.g., HT214774, HT214041), but the information does not seem to apply to our situation, and we are currently unable to identify the root cause of this connection failure.
[quote='797255021, swiftuiforever, /thread/797255, /profile/swiftuiforever'] Is this possible while inserting a String into Set [/quote] I’m not 100% sure. Historically it might’ve been possible to get into this situation if you had a custom subclass of NSString, but I tried that here in my office today and I’m not able to trigger it any more [1]. The most common source of errors like this is folks not maintaining the Hashable invariant. I explain that in detail below. Are you sure that frame 4 is working with Set rather than some custom type? Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com [1] For custom NSString subclasses, the compiler seems to eagerly bridge the contents over to a native String. One of the fundamental requirements of Hashable is that, if you values are equal, they must have the same hash [1]. This is what allows containers like Set and Dictionary to use hashing to speed up things up: They put each value in a bucket based
Topic:
Programming Languages
SubTopic:
Swift
Tags:
I also tested on iOS 26 Beta 6 (Build 23A5318f), but blocked calls still pass through.
Topic:
App & System Services
SubTopic:
General
Tags:
[quote='853724022, Peter_Si, /thread/796126?answerId=853724022#853724022, /profile/Peter_Si'] A unit test in Swift Testing. [/quote] Do you see different behaviour based on the value in the Testing > Host Application popup in the General tab of the target editor? This defaults to running your tests within your app rather than in a test runner process. I’m curious if you switch it from your app to the None setting, whether the networking APIs start behaving as you’re expecting. Share and Enjoy — Quinn “The Eskimo!” @ Developer Technical Support @ Apple let myEmail = eskimo + 1 + @ + apple.com
Topic:
App & System Services
SubTopic:
Networking
Tags:
I’ve now upgraded Xcode to the latest available build: Xcode 26.0 beta 5 (17A5295f). This should, in theory, resolve the version mismatch issue you highlighted. Please let me know if I should expect to wait for beta 6 specifically, but since this is the latest release, I assume it covers the ABI/runtime symbol alignment. Current behavior: macOS (Intel MacBook Pro): The app launches successfully, and the window is displayed. Pressing the record button (⭘) results in console logs: localeNotSupported could not record: invalidAudioDataType Playback works (I can hear the recorded sound), but there is no transcription displayed and no highlighting. Play button plays back my speech. iOS (iPhone 11, iOS 26.0 beta): Same as macOS above, except playback volume is extremely faint, even at maximum system volume. Question regarding Dictation: I also tried enabling Edit → Start Dictation from the menu, and accepted the prompt. After that: I don’t see any option to disable it within the app. Turning off Dictation i
Topic:
Machine Learning & AI
SubTopic:
Foundation Models
Tags:
Is this possible while inserting a String into Set Crashed: com.apple.root.user-initiated-qos.cooperative 0 libswiftCore.dylib 0xf4c0 _assertionFailure(_:_:flags:) + 136 1 libswiftCore.dylib 0x17f484 ELEMENT_TYPE_OF_SET_VIOLATES_HASHABLE_REQUIREMENTS(_:) + 3792 2 MyEatApp 0x44f6e8 specialized _NativeSet.insertNew(_:at:isUnique:) + 4333926120 (<compiler-generated>:4333926120) 3 MyEatApp 0x44eaec specialized Set._Variant.insert(_:) + 4333923052 (<compiler-generated>:4333923052) 4 MyEatApp 0x479f7c HomeViewModel.hanldeAnnouncementCard(from:) + 293 (HomeViewModel+PersonalizedOffer.swift:293) 5 libswift_Concurrency.dylib 0x5c134 swift::runJobInEstablishedExecutorContext(swift::Job*) + 292 6 libswift_Concurrency.dylib 0x5d5c8 swift_job_runImpl(swift::Job*, swift::SerialExecutorRef) + 156 7 libdispatch.dylib 0x13db0 _dispatch_root_queue_drain + 364 8 libdispatch.dylib 0x1454c _dispatch_worker_thread2 + 156 9 libsystem_pthread.dylib 0x9d0 _pthread_wqthread + 23
Hi, this is because you are using an older Xcode (beta 3) with a newer OS (beta 6). During beta, we make changes to the API based on developer feedback, so we do not guarantee the compatibility of runtime symbols (ABI) between beta versions. This crash is unrelated to Intel or not. The best way to resolve this is installing an Xcode that matches your OS.
Topic:
Machine Learning & AI
SubTopic:
Foundation Models
Tags:
@kevdoescode you ask if the post is correct. That probably means it does not work properly. If so, do you get and error message ? Is the result different from what you expected ? To use the forum properly, you have to provide this information, not just ask someone to correct your code. I advise also to read the very good post on how to properly use the forum: https://developer.apple.com/forums/thread/706527 A simple code sample here: https://forums.swift.org/t/sending-an-http-post-request-to-an-api-using-swift/62457
Topic:
Safari & Web
SubTopic:
General
Tags:
I’m having the same issue. Until beta 5 or 6 the custom sound file wouldn’t even play and it would only play a system sound. I’m hoping this is still just a bug and they fix these issues but I’m not sure what to expect.
Topic:
App & System Services
SubTopic:
Notifications
Hi all, I’m trying to add a file to a game on my iPhone via my MacBook. Now we have no iTunes connecting with the cable brings up the same menus however I’m being told I have to reset my iPhone back to factory settings to do this (see attached). I’m on IOS26 beta 6. A couple of questions I’ve backed up via iCloud, if I reset would I be able to reset it right back to my current set up with the beta, would I lose anything? Is there another way to connect to my MacBook to enable access to the games and files that would allow me to do a minor change without having to reset?
Hi everyone, I would like to ask for help how should I resolve the issue with app submission for Guideline 4.3(a) - Design - Spam. I will explain my case to you. I assigned a task to junior engineer to submit an app from a personal developer account because my organization account has not been available yet. I thought I could be transfer later or resubmit under different bundle id and account would be okay. yes, it was my fault . But the app review process was taking too long in the personal account and I told him to cancel and delete the app submission, thinking that there might be not issue since the app was not released in AppStore. After I submitted the updated version of app with organization account, it doesn't get approve and getting 4.3.0 Spam rejection. We have taken about 6 months of work putting all the efforts both in the technical and business side on the product from scratch. We are about to launch in next week and our app is got rejected. I don't know what to do. I've all the authority
Topic:
App Store Distribution & Marketing
SubTopic:
App Review
Please refer to Feedback report: FB19701007 The Personal Voice file created in English changes to either Spanish or Chinese and no longer works properly. This has been happening since Beta 1 of iOS/iPadOS 26. I have been unable to pinpoint what causes this to occur. Possibly downloading foreign voices to a device or using different voices via AVSpeechSynthesizer. I run an app in Xcode on my device that prints to the console info about the installed voices. Initially after creation here is the output: Voice Identifier: com.apple.speech.personalvoice.16173F8D-DFB0-4024-98CC-69D965FD96A4 Language: en-US Then I hear a Spanish accent and find this: Voice Identifier: com.apple.speech.personalvoice.16173F8D-DFB0-4024-98CC-69D965FD96A4 Language: es-MX Currently it isn't working and here is the output: Voice Identifier: com.apple.speech.personalvoice.16173F8D-DFB0-4024-98CC-69D965FD96A4 Language: zh-CN Note that the voice file on all three above is the same. No matter what the user does, the created voice file should
libdispatch.dylib + 112004) [0x1a4f40584] 1 ??? (libswiftDispatch.dylib + 7308) [0x1a6606c8c] 1 ??? (libswiftDispatch.dylib + 7728) [0x1a6606e30] 1 ??? (libswiftDispatch.dylib + 7972) [0x1a6606f24] 1 ??? (libswiftDispatch.dylib + 8124) [0x1a6606fbc] 1 ??? (libswiftDispatch.dylib + 7768) [0x1a6606e58] 1 ??? (GRDBInternal + 9948) [0x2674e16dc] 1 ??? (GRDBInternal + 9764) [0x2674e1624] 1 ??? (ToolKit + 528580) [0x278d030c4] 1 ??? (libsqlite3.dylib + 521032) [0x1cb4b0348] 1 ??? (libsqlite3.dylib + 1067048) [0x1cb535828] 1 ??? (libsqlite3.dylib + 382056) [0x1cb48e468] 1 ??? (libsqlite3.dylib + 309376) [0x1cb47c880] 1 ??? (libsystem_kernel.dylib + 27292) [0x1eddfba9c] 1 Binary Images: 0x104810000 - ??? com.apple.WorkflowKit.BackgroundShortcutRunner 7.0 (3612.0.2.1) /System/Library/PrivateFrameworks/WorkflowKit.framework/XPCServices/BackgroundShortcutRunner.xpc/BackgroundShortcutRunner 0x1a4f25000 - 0x1a4f6ab3f libdispatch.dylib /usr/lib/system/libdispatch.dylib 0x1a6605000 - 0x1a661b560 libswiftDispatch.dylib <
Topic:
Community
SubTopic:
Apple Developers
Tags: