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
2.9k
Sep ’24
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
617
Oct ’22
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
839
Apr ’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
8.0k
Apr ’21
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
3k
Apr ’21
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?
Replies
4
Boosts
2
Views
2.9k
Activity
Sep ’24
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!
Replies
0
Boosts
0
Views
617
Activity
Oct ’22
Date style as timer, but use days
I was wondering if there was any way to get the dd:hh:mm:ss style when formatting a date as timer? Currently the following code only does hh:mm:ss - Text("\(Date(timeIntervalSince1970: 1686330135), style: .timer)")... Any help appreciated!
Replies
2
Boosts
0
Views
1.2k
Activity
Jun ’22
Send notification to iPhone from Apple Watch in Swift
Is it possible to send a notification to an iPhone from the paired Apple Watch on a button press in my app on the watch?
Replies
3
Boosts
0
Views
2.0k
Activity
Jun ’21
Calendar complication
I have a quick question, how would I create a calendar complication, like the one called "Untitled" in this folder - https://www.icloud.com/iclouddrive/08yLlO48KSeES5t8Pho9lLS8g#Untitled? Any help appreciated!
Replies
0
Boosts
0
Views
706
Activity
May ’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
Replies
0
Boosts
0
Views
839
Activity
Apr ’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
Replies
11
Boosts
0
Views
8.0k
Activity
Apr ’21
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?
Replies
8
Boosts
0
Views
3k
Activity
Apr ’21