czottmann, to iOS
@czottmann@norden.social avatar

Heads-up, devs: AppEnum of any type other than String seem to be broken in iOS 17.4 etc. For example:

// Broken, @Parameter will always be empty  
enum Whatever: Double, AppEnum {…}

// Works  
enum Whatever: String, AppEnum {…}  

See https://forums.developer.apple.com/forums/thread/748286

czottmann, to macos
@czottmann@norden.social avatar

on 14.4.0 not giving a shit about what I set in my app’s actions and just reporting the default value is a nice touch. I clearly remember it working fine on 14.3.

Cool, cool, cool, cool cool cool cool cool coolcoolcoolcoolcoolcoolcoolcool

czottmann,
@czottmann@norden.social avatar

Thanks, random Swift dev^1, for getting me on the right path:

// Doesn't work  
enum Thingie: Int, AppEnum {}

// Works  
enum Thingie: String, AppEnum {}  

MuseumShuffle, to SwiftUI
@MuseumShuffle@mastodon.social avatar

I'm finally learning about using App Intents for implementing configurable options for widgets. After watching the WWDC videos one thing is not clear to me.

If my app does not have any configurable widgets, and therefore does not have a custom intent file, can I keep using those widgets "as is" and then just create a new widget that uses App Intents for the widget's options?

fhe, to random German
@fhe@mastodon.social avatar

I’m still experimenting with AppShortcuts and noticed an issue with localization:

When I use a LocalizedStringResource with an actual key like shortcuts.markhabit.shorttitle instead of the default value for the AppIntent's shortTitle, the App Shortcut will show this key in the Shortcuts app instead of the provided defaultValue.

I was expecting it to be displayed using the default value. Am I holding it wrong?

alpennec, to random
@alpennec@iosdev.space avatar

People using / with for Siri/shortcuts/widgets/focus: have you made your models (say CDItem) conform to AppEntity or have you created another “lightweight” type that maps to your model (ItemEntity)?

What’s the smart way to implement that?

In the Backyard Birds project, Apple creates another type to use in intents. But when I do that, I find myself duplicating code in both types.

1/n 🧵

czottmann, to random
@czottmann@norden.social avatar

heads-up: DynamicOptionsProvider comes out differently when compiling with 15 compared to 14.3.1.

The resulting list looks different in the Shortcuts editor but, more importantly, its filtering doesn't work. Enter any text and you'll get zero results. 😐

I went back to Xcode 14 for the time being

jordanhipwell, to random
@jordanhipwell@mastodon.world avatar

How do AppIntents mesh with NSUserActivity? I’m creating app shortcuts that do the same thing, seems like almost a direct replacement. I’ll seemingly need to turn off isEligibleForSearch and isEligibleForPrediction, and remove suggestedInvocationPhrase. But I see no way to indicate app intent relevance like you do by setting userActivity. I'll continue to set a user activity to utilize isEligibleForHandoff but that's it. Does that sound right?

ryanashcraft, to random
@ryanashcraft@mastodon.social avatar

Has anyone tried using @AppDependency and AppDependencyManager?

ryanashcraft, to random
@ryanashcraft@mastodon.social avatar

Niche question:

When you convert a legacy Siri intent to an AppIntent, it generates AppEntity structs from the legacy intent types. And there is backwards compatibility support by means of CustomIntentMigratedAppIntent and consistent use of property names and types.

I'd like to rename my AppEntity structs. Does the name of the AppEntity structs matter, or can I rename them?

rmaraujo, to random Portuguese
@rmaraujo@mastodon.social avatar

Been hard at work on Charty 2.0 these last couple of days! 🤓

As mentioned, it’s an entire rewrite of the app, here are some of the changes:

As Swift Charts doesn’t have Pie and donut charts, I’ve had to build my own. This allowed me to create new stuff like this two level donut chart 😊

actions will get a big revamp with better error handling, more intuitive parameters and new actions!

🚀

manuel, to random
@manuel@iosdev.space avatar

Just listening to the “iPadOS 17 Wishes” @appstories episode and must say that @viticci’s suggestion for Spotlight extensions would make me so happy 🥹

Maybe as be part of / without even (much) extra work to be done by devs? Essentially “just” expose intents in Spotlight with a more interactive UI, allowing to directly type in parameters (Raycast-style) and other kinds of rich interactions without leaving ? 🤔

  • All
  • Subscribed
  • Moderated
  • Favorites
  • provamag3
  • kavyap
  • DreamBathrooms
  • cisconetworking
  • khanakhh
  • mdbf
  • magazineikmin
  • modclub
  • InstantRegret
  • rosin
  • Youngstown
  • slotface
  • Durango
  • tacticalgear
  • JUstTest
  • ngwrru68w68
  • everett
  • normalnudes
  • cubers
  • tester
  • thenastyranch
  • osvaldo12
  • GTA5RPClips
  • ethstaker
  • megavids
  • anitta
  • Leos
  • lostlight
  • All magazines