The Swift Den

TSD

The Swift Den

The Discord server for Swift developers. Get tips and snippets for your projects!

Join

swift-development

javascript

python

rust

c-sharp

Navigating SaaS Subscriptions on iOS

Hey SaaS builders! 👋 We’re working on an iOS app and want to handle premium subscriptions similar to how Netflix does—avoiding in-app purchases (IAP) and guiding users to subscribe through our landing page. The twist? It's a SaaS product! Here’s the challenge:...

Actors in Swift programming language

Swift’s Actor model brings an exciting new way to manage state safely and avoid data races in concurrent code. 🎭 If you’re curious about Actors, isolation, or just want to write safer, more efficient Swift code, check out my latest Medium article! 👉 Dive in here: https://medium.com/@siddharthpatel_83585/actors-in-swift-programming-language-60de77b520e8 Actors in Swift Programming Language 💬 I’d love to hear your thoughts—what concurrency challenges have you faced in Swift?...

🚀 Mastering Async/Await in Swift! 🚀

Async/await in Swift is a game-changer for handling asynchronous code! 💡 It transforms complex callback chains into simple, readable code, letting you write asynchronous operations as if they were synchronous. Gone are the days of nested closures and completion handlers—just use await, and Swift handles the rest! 🙌 Whether you’re fetching data, performing background tasks, or updating UI, async/await makes your code cleaner, faster, and more efficient. Embrace it, and take your Swift skills to the next level! #Swift #iOSDevelopment #AsyncAwait #Coding#AppleDevelopment...

Looking For A Work

Hello Everyone I am seeking role as a Software Engineer. If you have any work and planning new, kindly let me know. Here is my portfolio. ...

Need guidance on keyboard management

Hi everyone. Been hitting a dead end with keyboard avoidance issues. I have a view where the user can add a bunch of rows of text fields to the app to type in item names. However, the keyboard extends over it when I add the .ignoreSafeAreas(.keyboard) modifier. If I remove the modifier, everything gets squished into half the view size. I've tried a few other things like GeometryReader and hiding some of the UI elements behind a flag when the text fields focus isn't nil. This solution worked, bu...
No description

Test Driven Swift, anyone?

I just started learning Swift and one of the books I'm working with is related to Test Driven Development. In practice, do you follow a test driven approach? Is this big in the Swift development community or not as common? I'm a Ruby on Rails developer and TDD is expected since Ruby is dynamically typed. I appreciate any opinion, thanks!

Do you know a good SDL2 package for Swift

Do you use Swift with SDL2? If yes how to start?

AVFoundation take photos with camera aspect ratio 4:3

is anyone here who knows how to configure camera for taking pictures (I'm planning to add video capturing ability in a future) in aspect ratio 4:3? I don't wanna crop captured photo, but use camera format (e.g. 1080x1440) I tried setting different session's sessionPreset arguments but it didnt help me, anyway, my target is to capture high resolution photos....

Looking for SwiftUI dev

who can work with me ? I am looking for SwiftUI dev with fullstack experience...

Live activities doesn’t get notifications token

Hi everyone, I’m currently learning Swift and Swift UI by myself for my master degree. Since yesterday I’m building a little app to implement Live Activities and Dynamic Island notifications, because they’re to cool to be ignored, but something goes wrong. ...

Volume Rendering in Metal

Hello, I am trying to volume render in metal and I get these artefacts. I suspect they are possibly due to gradient computation (finite difference method), but I've also tried using full 26 neighbors, sobel filter, and can't seem to get rid of these. Your help will be really appreciated....
No description

Swift Micro-Controller

Has anyone I stalled Swift for micro controllers and started using it with ESP32 RISC V or one of the listed supported developers boards. Or has anyone managed to set up Swift Micro controllers SDK to work with ESP32-S3 Development Boards yet ?

I need help !!

What do I do to fix this error
No description

Tracking Fb Meta Pixel in application that targets Kids application

I am trying to track fb pixel from an ios application which is coppa compliant but it is not tracking. Is there anything we can do to make it work

Supported Destination

Is there a way to have mac(designed for iPhone) while keeping iPad It automatically changes when add or remove ipad...
No description

Add a local backup system.

Hello I would like to add a local backup system, does anyone have a source or a site to recommend to me? Thanks...

If you need help, PM me & add me as a friend

Offering free help within reason, additional services relative to AI/ML as i am a NLP Researcher for various groups. I have extensive swift/uikit experience, feel free to pm me and we can work through your problem for a resolution.
Next