Post

Replies

Boosts

Views

Activity

Reply to Help wanted for newbie
There's a lot going on in your sample code, so you need to narrow down where the issue is. It looks like you may have multiple issues, so you may want to start with simpler code first? Some points to consider: Are you successfully creating a valid GKCoordinate? If so, are you getting a valid WGS coordinate from it? A SwiftUI array-based List requires that each element is uniquely identifiable. Your coordinates may not be uniquely identifiable (since the user could enter the same values more than once. Why store the coordinate values as string, and then re-scan them to numbers... why not just store them as coordinates? (Could there be an error in either side of this conversion process?) Are you passing a valid coordinate to showinMaps? Are you passing a valid MKMapItem to Maps?
Mar ’23
Reply to Storyboard in Xcode
Some people prefer using Storyboard and constraints - if you don't like it, you have the option of not using it. Existing projects which use the Storyboard may continue to exist for many years, and Apple must support this. Xcode is very flexible - use the features you want, and ignore the others.
Dec ’22
Reply to Cannot Parse JSON data
Your json is formatting dates like "11.12.2022", which is MM.dd.yyyy You need to provide this format to your JSONDecoder. I generally use a DateFormatter extension for this: extension DateFormatter { static let jsonDateFormatter: DateFormatter = { let formatter = DateFormatter() formatter.locale = Locale.autoupdatingCurrent formatter.dateFormat = "MM.dd.yyyy" return formatter }() } Then you simply pass this to your JSONDecoder, like this: do { let decoder = JSONDecoder() decoder.dateDecodingStrategy = .formatted(DateFormatter.jsonDateFormatter) return try decoder.decode(T.self, from: data) }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Nov ’22
Reply to Select annotation in Map
Did you remember to set your DatosCercanos object to be the Mapa's MKMapViewDelegate?
Replies
Boosts
Views
Activity
Mar ’23
Reply to Legalities about emulating MacOS on a standard PC?
Technically, can this be done? Yes Would that break Apple copyrights? Yes Is it legal? No
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Mar ’23
Reply to Help wanted for newbie
There's a lot going on in your sample code, so you need to narrow down where the issue is. It looks like you may have multiple issues, so you may want to start with simpler code first? Some points to consider: Are you successfully creating a valid GKCoordinate? If so, are you getting a valid WGS coordinate from it? A SwiftUI array-based List requires that each element is uniquely identifiable. Your coordinates may not be uniquely identifiable (since the user could enter the same values more than once. Why store the coordinate values as string, and then re-scan them to numbers... why not just store them as coordinates? (Could there be an error in either side of this conversion process?) Are you passing a valid coordinate to showinMaps? Are you passing a valid MKMapItem to Maps?
Replies
Boosts
Views
Activity
Mar ’23
Reply to PDKKit Sample code
Perhaps you mean "PDFKit"?
Replies
Boosts
Views
Activity
Dec ’22
Reply to Upload lover version to TestFlight
Upload lover version to TestFlight Is it a dating app?
Replies
Boosts
Views
Activity
Dec ’22
Reply to Storyboard in Xcode
Some people prefer using Storyboard and constraints - if you don't like it, you have the option of not using it. Existing projects which use the Storyboard may continue to exist for many years, and Apple must support this. Xcode is very flexible - use the features you want, and ignore the others.
Replies
Boosts
Views
Activity
Dec ’22
Reply to Unable to dowload Xcode on MackBook pro 15
You will need to clear more available disk space. It's not just the download size, the file has to be unzipped/processed/installed.
Replies
Boosts
Views
Activity
Dec ’22
Reply to Can I still create apps for IOS16 using xcode 9.2
No.
Replies
Boosts
Views
Activity
Dec ’22
Reply to I have this error with Xcode 14.1 "Closure containing a declaration cannot be used with result builder 'ViewBuilder'" pleas help me
Show your code.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Dec ’22
Reply to I want to override the screen awake time from my app
You could use isIdleTimerDisabled, to do this. Set it to true to keep the phone awake, then set it to false to let the system settings take over.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Nov ’22
Reply to Customizing GUI of Messages App
Does Xcode allow me to create an version of Apples Messages app where i can customize features? No. (That would require Apple to give you the source code for Messages, which isn't going to happen.)
Replies
Boosts
Views
Activity
Nov ’22
Reply to Cannot Parse JSON data
Your json is formatting dates like "11.12.2022", which is MM.dd.yyyy You need to provide this format to your JSONDecoder. I generally use a DateFormatter extension for this: extension DateFormatter { static let jsonDateFormatter: DateFormatter = { let formatter = DateFormatter() formatter.locale = Locale.autoupdatingCurrent formatter.dateFormat = "MM.dd.yyyy" return formatter }() } Then you simply pass this to your JSONDecoder, like this: do { let decoder = JSONDecoder() decoder.dateDecodingStrategy = .formatted(DateFormatter.jsonDateFormatter) return try decoder.decode(T.self, from: data) }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’22
Reply to iphone 12 mini - can't make calls + can't tap on apps + links wont open
Have you tried turning it off, and on again?
Topic: App & System Services SubTopic: Hardware Tags:
Replies
Boosts
Views
Activity
Nov ’22
Reply to Employee live location monitoring feature
No challenge, this is quite straightforward. Each employee will need to allow the app to share their location. The app sends the locations to your central server. The "employer" version of the app picks up the employee locations, and shows them on the map.
Replies
Boosts
Views
Activity
Nov ’22
Reply to SF symbols
You can learn about SF Symbols here: https://developer.apple.com/sf-symbols/
Topic: Design SubTopic: General Tags:
Replies
Boosts
Views
Activity
Nov ’22