Post

Replies

Boosts

Views

Activity

WidgetKit with Intent on iOS 17
I have edited the default widget with Intent, but am being hit with the following errors… it runs perfectly fine if I don’t use an Intent in a static widget Could not find an intent with identifier ConfigurationAppIntent, mangledTypeName: Optional("27trainWidgetsConfigExtension22ConfigurationAppIntentV") associateAppIntent(forUserActivity:) Error converting INIntent to App Intent: AppIntents.PerformIntentError.intentNotFound I think it may be something to do with Info.plist?
4
2
1.9k
Nov ’23
How to get single object JSON API in SwiftUI
I am trying to get the data from this API - (api.solunar.org/solunar/42.66,-84.07,20180207,-4). I found this tutorial (youtube.com/watch?v=gfOhBmU2cPM), but it is for a list of objects JSON API, whereas mine is just 1 single object... Does anyone know how to edit the code from the video to work with my API?
8
0
2.7k
Mar ’21
Trying to archive to a .ipa fails...
I am trying to archive my app as an .ipa to upload to TestFlight, and I get an error saying: Command CompileSwift failed with a nonzero exit code this error is that same for my watch app and widget... If I click into the error, it says that there is no error: imgur.com/a/O0yJDKg any help appreciated!
0
0
523
Mar ’21
Modal view using HalfModal creates a new tab in TabView
I have just fixed an issue where its solution was to move my code to different .swift files and then reference them as views in ContentView.swift. I have modal views in my new view swift files, using this repo - https://github.com/ViktorMaric/HalfModal, and now my Modal views show up as their own tab in my TabView, whereas they didn't before. My code is below... ContentView.swift - https://developer.apple.com/forums/content/attachment/80e41ced-67a1-4083-8bbb-49d1e9caa610 rocketView.swift - https://developer.apple.com/forums/content/attachment/00da3f2e-0be2-4ec9-8eb5-c7131****48d aboutView.swift - https://developer.apple.com/forums/content/attachment/e7e9d046-7637-48c0-aee5-8bb4fc43a278 launchesView.swift - https://developer.apple.com/forums/content/attachment/673078c5-6506-42ee-a150-f0f0db625afc
0
0
687
Jan ’21
How do I stop 'The compiler is unable to type-check this expression in reasonable time'
I am trying to write my first app, after adding another item to tab view, I get the error The compiler is unable to type-check this expression in reasonable time; try breaking up the expression into distinct sub-expressions How do I stop this error? my code is: my code - https://developer.apple.com/forums/content/attachment/30e42482-cc67-416a-b859-861c81bac7ff
11
0
6.6k
Jan ’21