Search results for

Swift 6

49,208 results found

Post

Replies

Boosts

Views

Activity

Reply to Database App
I've developed databases in MySQL Workbench and ported them to CloudKit, SQLite, and Swift. I've created some workbench modules with Python to do so. They're available if anybody is interested. https://github.com/JoelHz/FromMySQLWorkbenchToCloudkit/blob/main/pythonTranslateMySQLWbToCloudki https://github.com/JoelHz/FromMySQLWorkbenchToSwift/blob/main/pythonTransMySQLToSwift https://github.com/JoelHz/MySQLWorkbenchPluginToSQLite/blob/main/tosqliteformat_grt.py
Topic: Business & Education SubTopic: General Tags:
3w
Database App
I am planning to make a app of database of a particular animal (what it eats, where it lives, ...).. How can I create an app that has a database?. Is there a software I add to my app?. Do I design it in another software and then convert it to swift? . Or is there instructions of how to design a database app in swift?Thank you so much.
4
0
1.7k
Feb ’16
Title: App Rejected (4.3(a) - Design Spam)
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
3
0
157
3w
WKWebView crash on iOS 26 Beta with -webkit-user-select: none
On iOS 26 Beta, WKWebView consistently crashes when interacting with pages that use -webkit-user-select: none. This issue does not reproduce in Safari, but only when the same content is loaded inside a WKWebView. Steps to Reproduce: Install iOS 26 Beta. Open a WKWebView that loads a webpage with the following style applied globally: -webkit-user-select: none; Perform the following gesture sequence inside the WKWebView: Double tap anywhere in the web content. On the second tap, keep your finger pressed (do not lift). While still holding the second tap, drag your finger across the screen (pan). This sequence reliably produces the crash. Expected Result: No crash. The gesture should either be ignored or handled gracefully. Actual Result: The app crashes 100% of the time with the following exception: #0 0x000000013f1a0874 in __pthread_kill () #1 0x00000001357522ec in pthread_kill () #2 0x00000001801ad950 in abort () #3 0x00000001802fa26c in __abort_message () #4 0x00000001802ea1a4 in demangling_terminate_handler
3
0
983
3w
Reply to Call Blocking (CallKit) not working on iOS 26 Public Beta
The issue persists in iOS 26 Beta 6 (Build 23A5318c). As come quick follow up on this, yes, the issue is not fixed in beta 6. As some background context, there is a significant testing process before every beta is released, so it's not unusual for a bug to be completely fixed (meaning, all code changes have been submitted and are in that release) but miss the next beta release because that release is already locked and in testing. I also tested on iOS 26 Beta 6 (Build 23A5318f), but blocked calls still pass through. In a similar vein, the minor letter (c vs f) is primarily used to designate differences that are outside the actual code/build, like the distribution mechanism (in this case, the developer seed vs. the public beta). While it's possible there have been exceptions, I would not expect there to be ANY substantial behavioral difference* between those two build. *The obvious exception would be issues caused by differences in the install or configuration pipeline, which is why
Topic: App & System Services SubTopic: General Tags:
3w
Unable to drop some flows in NEFilterDataProvider handleNewFlow
I have a typical content filter implemented using NEFilterDataProvider and I'm observing that sometimes handleNewFlow will not obey the returned verdict. More specifically, drop verdict is sometimes ignored and an error message is logged. The impact on my app is that my content filter may not drop flows when it was supposed to. I narrowed the issue down to being triggered by using my content filter alongside a VPN (Tailscale VPN, haven't tested others). To reproduce the issue: Open reddit.com on Google Chrome Activate the content filter set to drop traffic (in my case configured for reddit) Run a VPN Refresh the reddit browser tab Observe reddit being loaded just fine, despite traffic being dropped Below you may find a sample log that may be related to when the issue is triggered. Near the end of the log below, I found this particular line interesting: No current verdict available, cannot report flow closed. I wonder if it means that something else raced in front of my extension and gave an allow verdict. My
2
0
173
3w
Content Filter: sourceAppAuditToken empty only for Firefox
Starting on macOS Sequoia, flows originated in Firefox have an empty sourceAppAuditToken. Other apps contain a valid token. Background: in order to fetch process info for a certain NEFilterFlow, my content filter extension uses sourceAppAuditToken, audit_token_to_pid() and proc_* (as recommended in #126820). When that fails, we use SecCodeCopyGuestWithAttributes, recommended in some other thread as a better alternative. Both approaches break when the sourceAppAuditToken is empty since they need the pid. Debugging: My logging shows audit token is empty for Firefox Typical logs from com.apple.networkextension also indicate it fails to fetch the same info I'm looking for: com.apple.networkextension debug 11:22:07.024588-0300 Fetching appInfo from cache for pid: 948 uuid: 5C40B765-C6C9-3641-A822-2BC44D264361 bundle id: (null) com.apple.networkextension debug 11:22:07.024657-0300 Calling delegate lookup handler with pid: 948, uuid: 5C40B765-C6C9-3641-A822-2BC44D264361, bundleID: (null) com.apple.networkextension d
3
0
455
3w
Reply to How to identify which UIControl.Event triggered a common selector for UIButton?
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:
3w
Reply to ELEMENT_TYPE_OF_SET_VIOLATES_HASHABLE_REQUIREMENTS
[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:
3w
Reply to UDP TransparentProxyProvider
[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
3w
Leading Swipe action in UIPageViewController is not working when it is pushed on UINavigationController.
When a UIPageViewController is pushed in a UINavigationController, the leading swipe action from middle of screen dismisses the PageViewController instead of going to previous page. When the Example code is opened from Xcode 16.4.0, ✅ Left Swipe action from left screen edge of screen dismisses the Page View Controller. ✅ Left Swipe action from middle of screen goes to previous Page in Page View Controller When the Example code is opened from Xcode 26.0 - Beta 6, ✅ Left Swipe action from left screen edge of screen dismisses the Page View Controller. ❌ Left Swipe action from middle of screen sometimes goes to previous page and sometimes dismisses the Page View Controller. Example code that the issue occurs: import Foundation import UIKit import PlaygroundSupport PlaygroundPage.current.setLiveView( UINavigationController(rootViewController: RootViewController()) ) class RootViewController: UIViewController { lazy var pageVCButton: UIButton = { let button = UIButton() button.setTitle(Open Page VC, for: .
1
0
54
Aug ’25
FoundationModels tool calling not working (iOS 26, beta 6)
I have a fairly basic prompt I've created that parses a list of locations out of a string. I've then created a tool, which for these locations, finds their latitude/longitude on a map and populates that in the response. However, I cannot get the language model session to see/use my tool. I have code like this passing the tool to my prompt: class Parser { func populate(locations: String, latitude: Double, longitude: Double) async { let findLatLonTool = FindLatLonTool(latitude: latitude, longitude: longitude) let session = LanguageModelSession(tools: [findLatLonTool]) { A prompt that populates a model with a list of locations. Use the findLatLon tool to populate the latitude and longitude for the name of each location. } let stream = session.streamResponse(to: Parse these locations: (locations), generating: ParsedLocations.self) let locationsModel = LocationsModels(); do { for try await partialParsedLocations in stream { locationsModel.parsedLocations = partialParsedLocations.content } } catch { print(Error
2
0
320
3w