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

Error when i upload my app to the app store

I think the error is the bundle Id but i cant figure it out, here is a image of the error that appears when i try to archive my app..
Solution:
It says you need to allow more orientations so that it can multitask on iPad. You can do that from your project file
No description

sirikit

Are there any usefull docs to integrate sirikit with custom intents in my swift application.

I have exactly a week to make a game and I have no ideas, read message

Ok, so I have to make a fun game in exactly a week and obviously have to sleep and some other commitments so not even a week, so please help me with code but first I need ideas, I'm thinking maybe a chess thing or a travel game or something, I want it to include dark and light mode, thank you, (it's for a tech showcase)

I'm repeating a friend's thing since I can't find it, but also is there a way to track location

Ok so not necessarily track but have locational access granted your user allows and inputs. My friend's question regarded using a key part for controls, now I have an adaptation of his question as well, so presumably you should still be able to touchscreen with keyboard usage? Ty Edit: I have a new idea, well old but I might as well ask here, how to get a notification upon app opening that can take you to a tab (like terms & conditions or smth)...

Apple Maps Installed Check

Does iOS swift provides to check if apple maps is installed or not? I am using UIApplication.shared.canOpenURL but it returns true even if the apple map is uninstalled #swift-development...

How to resolve "Cannot find 'AKMicrophoneTracker' in scope"?

Trying to create app that checks your pitch (from microphone) using AudioKit from github.com/AudioKit/AudioKit, but something ain't working in code. I tried to even use GPT4 to help, but it couldn't figure it out. Keep going circles. Trying to create app that checks your pitch (from microphone) using AudioKit from github.com/AudioKit/AudioKit, but something ain't working in code. I tried to even use GPT4 to help, but it couldn't figure it out. Keep going circles. ```...
No description

Grouping SwiftData objects

Hello, anyone have a good way to group data coming from SwiftData so that it can be displayed in list sections? I currently use a method that converts the data into a dictionary, but I feel it is a bit wasteful. Hopefully we will get a native way to group data next WWDC

Swift Expert needed

We are looking for a Swift expert. hourly rate is 10 ~ 15 usd per hour. Please ping me,

How do i render blender motion graphics in ios

I am having animations(currently converted to videos) which are looping on actions, I don't have enough control on AV Player. I wanted to know if there is a method to render blender animations without converting it to videos using some library that is reliable

Carthage - Missing a required architecture Error

I new at using Carthage, I almost fixed 5 errors but I can not fix this issue. I searched nearly 30 website and did whatever they say but can not fix this build for Error. Can someone help me please
No description

MERN website developer needs a job.

Good day everyone, My name is Olawale, I am a full stack web developer capable of building modern websites with exceptional digital experience. I have many years of experience working with frontend frameworks, libraries, packages and tools including React, Nextjs, threejs, Animation Libraries/packages(Framer motion, scroll trigger, GSAP etc.), React Libraries(React-PDF, React-Map etc.) and also with backend frameworks, libraries, packages and tools including Node/Express, API, Web-scrappers, MongoDB/Mongoose, Web socket, Templating engine, Payment integration, Web security and authentications etc. making me primarily a full stack web developer of the MERN stack. I also have experience in mobile app development using React-Native, and Flutter, and also in Graphic design - I design perfect logo, flyers and posters for businesses and brands. I have worked as a freelancer for over 4 years, serve as intern and taken contract jobs for various companies like lendsqr, distributed etc....

Spotlight-like (or Alfred-like) 'popup menu' in SwiftUI?

It should be possible to do this since Alfred, a third-party app, clearly does it successfully.

Attaching position, rotation, extrinsic, gravity, intrinsics to an images metadata

Hi I’m looking to see if anyone has figured out how to: Attach position, rotation, extrinsic, gravity, intrinsics to an images metadata. Recently I have been using ARKit, RealityKit and SceneKit to capture my arframes data including cvpixelbuffers. I noticed that apples new object capture api for iOS natively saves all this data but their process is quite restrictive for actually capturing the images. Instead I’d rather use my method and then manually attach the metadata. I’ve been successful with the depth map and gps and exif dictionaries but the Apple documentation doesn’t exist for the remaining parameters. As of ios16 Apple introduced new fields like kIIOCameraModel_Intrinsics etc but it’s not clear that dictionary that is in so i don’t know how to add it to metadata l. Any one have any clue? I think with this information if you can attach it all in the image and then create a photogrammetrysession, object capture api will run faster and create 3d models to the scale and as close as position to the position of your world position origin transform…. Currently I get good 3d models with just the depth maps attached inside the images I make but their orientation is wrong due to lack of gravity meta data etc….....

Running Shell on iOS simulator w/ Swift

A Swift function that can run Shell ONLY on iOS simulator devices, it's similar to Objective-C's spawn() function but is compatible to iOS, unfortunately, the app breaks or freezes after you execute the function via manual like pressing a button. I'm still figuring out how to run sudo and making it automatically type in the root's password, and for people who thinks this is an exploit, the function contains posix_spawn, waitpid, and Pipe() which is added by default.

Uknown class view Controller

I have a code here, import UIKit class ViewController: UIViewController { ...

com.accounts.iTunes error

I am trying to implement some MediaPlayer and MusicKit features. Anyone know how I fix this bug on com.accounts.iTunes authentication error?

NSAttributedString from html is not loading resources

I'm trying to move from NSAttributedString.init(data:options:) to NSAttributedString.fromHTML(_:options), which is asynchronous. It's working fine, except that the CSS inside the html doesn't load my custom fonts. The previous version loaded then without any problem. I can share the code, but it's very app specific. ...

Picker not changing

hey y'all, how come this super simple code is not working for me? If I select a different unit in the Picker, it doesn't change its label ```swift import SwiftUI ...
Solution:
changed it to ```swift Picker("Original Unit", selection: $unitOriginal) { ForEach(unitList, id: .self) { unit in Text(unit)...

ISO Custom isn't working

Why wouldn't a custom ISO be supported? I am using an iPhone 13 Pro Max
No description

MagnificationGesture or MagnifyGesture

Which ru supposed to use? Magnification Gesture is deprecated and MagnifyGesture is IOs17 only