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

Image picking for Beginner

Hi i'm very new to swift, i've been using flutter for two years now so i'm having a hard time translating thing in my mind between dart and swift, i want to get back an image from library or camera ( i have finished this part) and i want to temporary save it in memory and get the path, how can i do that ???...

Looking For Help & Guidance

Hello everyone, At the moment, I'm working on a project using swift and Xcode. Admittedly, I'm not the most skilled programmer. I'm in search of assistance or guidance from anyone who's willing and able to offer it. Additionally, if someone could point me in the direction of where I might find the help I need without it costing an arm and a leg , I would be very grateful.

Deploy watchOS app without Apple Developer Account

Hey everyone, I developed a watchOS app for personal use and i cant find a way to deploy it permanent to my Apple watch. I dont aim to create apps for the app store , so i am not very interested in purchasing the dev account. Anyone can help me? 🙂...

Programmatically creating navigation bar for bottom of an app. Similar to native clock app.

I want to have a simple navigation bar along the bottom of my app. I currently have it set up as TabView, with each tab linking to one of my views. Research has pointed me in the direction of using UITabBarController. Which one should I be using for this use case?

Questions about structuring xcode projects

what are the best pratives when working in an xcode project? How can you manage and divide all the Swift files, views etc. so that you can keep an overview?

Help with creating custom shape in Swift ⚠

"Hey guys, I have a question. Could someone help me to implement this form of a folder in Swift? I watched a lot of videos about it but still couldn't get it done (I tried with path). If anyone has more experience with it and knows how to approach the problem, perhaps he could also create sample code. That would be very helpful."
No description

New To Swift

Hey everyone! I'm very new to the Swift language, and coding in general. I started a childrens coding club at my workplace and am getting a bit stuck on what I don't know regarding building apps in Swift. What I had in mind was possibly cloning open-sourced github repositories and breaking down how the code affects the final product line by line, but I'm having a very hard time getting code from github to work in any way when pushed into Swift Playgrounds, which I'm using as my IDE on my iPad. I realize this isn't the best way to approach programming, but it's mostly for the kids that I'm using this specific IDE on this specific device. Any pointers on how to get different swift files to "line up" properly, and how to get github code that theoretically should already work to compile in Swift Playgrounds would be most helpful!...

issue with firebase installation

I have been trying to run firebase in my react native project on Ios and andriod. I keep running into issue and having to restart the initialization process. If possible wanted some assistance in my firebase set up.

Widget Family/Widget Size

How can I change the view for different widget families/widget sizes? ```struct My_WidgetEntryView : View { var entry: Provider.Entry...

Failed to launch process, couldn't communicate with helper application.

Every time that I try to run a build in playgrounds I get this error. I would appreciate any help.
No description

please help

Hi, I am a fairly new and I am still learning things, I am trying to make an “AppointmentView” through a NavLink on my Appointments tab on my list in my IOS app, I am trying to format my page to have the same style as Image 1 (see images below) and I’m only trying to create a very basic and simple view on this page just with the fully extended assigned staff to that appointment, when the appointment was input, and the date and time for the appointments just like Image 1 Images here:...
No description

Firebase Authentication

Hi, everyone. I've been struggling with Firebase authentication in my app. I watched multiple tutorials and couldn't solve it. After trying to run any Firebase function I get two errors: "Beginning a fetch requires a request with a URL" and "Network error (such as timeout, interrupted connection or unreachable host) has occurred.". Please help.

Xcode XML problem

Does anyone know how to resort back to the old main visual file after something accidentally happened to it and now looks like an XML file? Here is what it looks like
No description

how to fetch data for every 5 seconds?

I making an app that logs battery value every 5 seconds. I am also doing a api get request along with it. these values are added in a csv file. my doubt is how do i make this task run continuously. Thank you😄...

how to randomly display data in SwiftUI?

typical use case for flash cards... I have shelves that contain boxes that contain cards. i want to randomly select a card from a box and display its data (front) and accept user input (right or wrong) and increment card.level if user selects "right" or decrement if he/she selects "wrong", after he/she has seen the back of the card. How to approach this use case?...

Problem only if want Archive App

Has anyone had the problem that the app runs without problems on iPhone or Simulator, but throws an error if i try archive this app?
No description

i can’t type into my xcode console #cplusplus

Does anyone know what’s going on? #cplusplus...

swift collection layout

I’m new to Xcode and swift. I would like to know the function / layout used to create this below. When you click on an item it tells you how to craft it, then click another item the images in the cells change for the new item....

Context menu program

Hello, I'd like to write a program that allows me to create a new file from the context menu. It's the first time I'm trying to code something like this, and I'm not sure where to start. I would like to use Swift, but which API/technology can I use to accomplish this?...