Would you allow Apple to train an AI on your Swift source code if, in return, Apple would take a smaller percentage of your app proceeds?
Swift | Reddit
by /u/amichail
2d ago
Of course, this doesn't mean that your source code would be made public in its entirety. It would only be used for training and only small fragments might appear in bot responses. You could even have a way to indicate sensitive source code fragments that must not be used for training. submitted by /u/amichail [visit reddit] [comments ..read more
Visit website
Music festival app
Swift | Reddit
by /u/oskarolini
2d ago
I’m working on an app for a music festival. It’s my first time creating an app, so bear with me. I have created the first iteration of the app, with artists, schedule, FAQ etc. Now the next step is: I want to be able to send push notifications to all users in case of cancellations/changes I want to be able to update the schedule in case of changes, and I want the users to see the change immediately when/if that happens In order to send push notifications, do I have to force users to create a user/log-in? This is unclear to me Do I have to connect a database (I’ve been looking at Supabas ..read more
Visit website
Do you think Apple will provide AI Swift coding help with no copyright risks for third party developers by training its AI over its internal code base?
Swift | Reddit
by /u/amichail
2d ago
submitted by /u/amichail [visit reddit] [comments ..read more
Visit website
How do I move downloads with URLSession to the background when app goes into the background?
Swift | Reddit
by /u/djryanash
2d ago
Hi, I have an actor that performs downloads of images while the app is in the foreground but I want those downloads to continue when the app goes into the background. I know a few of the technical details. For instance, I know: Enable Background Processing Mode. Use URLSessionConfiguration.background(withIdentifier:). But from here, I'm not sure how it works. I have some code but I'm kind of struggling to understand the flow: how I take the remaining undowloaded items and move them to a new URLSession which uses URLSessionConfiguration.background(withIdentifier:). and then keep track of tha ..read more
Visit website
Find bounds for substring in AXStaticText
Swift | Reddit
by /u/Key-Stranger8520
2d ago
I'm working on a co-pilot tool for macOS desktop apps using the accessibility API. I need to be able to introspect editable text elements in other desktop apps. I have a working solution for text areas, but can't seem to find a solution for static texts. For context - many electron based apps (eg. Slack) implement their text inputs as text areas that have static texts as child elements. For text areas, this line of code works perfectly AXUIElementCopyParameterizedAttributeValue(element, kAXBoundsForRangeParameterizedAttribute as CFString, rangeValue, &boundsValue) However, this approach g ..read more
Visit website
Migrate Swift 3 code without old Xcode?
Swift | Reddit
by /u/CorrianderBee
2d ago
Is there a way to migrate old Swift 3 code without using an old version of Xcode? I downloaded the version Xcode recommended to do this and it said it wouldn’t run on Ventura. submitted by /u/CorrianderBee [visit reddit] [comments ..read more
Visit website
Best options for an automatic, opinionated code style guide?
Swift | Reddit
by /u/Feuermurmel
2d ago
What are the best options today for a Swift style guide (focussed on code formatting) plus a tool that automatically applies that style guide? I.e. what Black does for Python. Background: I'm mainly a Python dev and I'm using Black and isort in almost all projects I work on (private and at my employer). Black is not just a code formatting tool, it is also a concrete style guide that is implemented by the tool. There are almost no options to tweak the ouptut. I looked at SwiftFormat by Nick Lockwood and swift-format by Apple and both have a lot of options and don't do that much without changin ..read more
Visit website
Best options for an automatic, opinionated code style guide?
Swift | Reddit
by /u/Feuermurmel
2d ago
[sorry for the double post, the right one is here] submitted by /u/Feuermurmel [visit reddit] [comments ..read more
Visit website
Looking for a Markdown Editor with live preview
Swift | Reddit
by /u/Chains0
2d ago
I have a SwiftUI Scrollview and want to include in it a markdown editor taking at first one line and when someone types in it, it should auto expand. When opening the ScrollView again, it should show the full markdown content without any scrollbar in scrollbars topics. Does anyone here like to share his implementation? I tried everything I could find, but none worked smoothly. Especially inside of a ScrollView. My current solution is a view rendering the markdown and when you click on it you can edit it. Works, but the extra sheet to open is not ideal at all submitted by /u/Chains0 [visit re ..read more
Visit website
Extension is what makes protocol oriented work
Swift | Reddit
by /u/SwiftSG1
2d ago
I'm sharing my experience that I don't see getting highlighted anywhere else. Forget polymorphism, multiple conformance for now. Focus on extension. How do you extend a function in a language that doesn't support extension? protocol -> default impl class -> subclass -> injection -> modify injected object (you need default impl because you don't want to rewrite everything for an extension) It's just brute force. It's easier to just modify the class itself. To justify this, you need to invent some abstract principles like dependencies, IOC, modular, easy-to-swap, open-for-extension ..read more
Visit website

Follow Swift | Reddit on FeedSpot

Continue with Google
Continue with Apple
OR