Post

Replies

Boosts

Views

Activity

Picker form style without Form
Is it possible to style a Picker on macOS to look like it was in a Form, but without actually being in a grouped Form? Unfortunately I can't use Form because its style is not customizable enough. I've tried setting various buttonStyles but I only got close to what I want. The biggest problem is that the picker is left-aligned and I need it right-aligned.
1
0
234
Jun ’24
AppIntent Date parameter returns wrong value
I'm implementing an AppIntent of my macOS app (not iOS). It has a non-optional Date parameter like so: @Parameter(   title: LocalizedStringResource("AppIntent.parameter.date"), requestValueDialog: IntentDialog(LocalizedStringResource("AppIntent.parameter.date.requestValue"))   ) var date: Date ... static var parameterSummary: some ParameterSummary { Summary("Remind me about \(\.$title) at \(\.$date)") } In the Shortcuts app it shows up fine and everything works if I actually enter a date in the summary. If the parameter is empty when running the intent, the "requestValue" dialog pops up asking for a date with a date picker. However, the returned date is always 7 hours in the future. E.g. I enter a date with 11:00am, then it would return the same date but with 6:00pm. Am I doing something wrong or is this a bug in Shortcuts?
0
0
1.5k
Jan ’23
Hiding the map layer in MKMapView
I want to use an MKMapView only for its capabilities to render geometries such as polylines and polygons. I want to hide all map features completely. Unfortunately there doesn't seem to be an easy way to do this. I tried using a custom tile renderer that just renders a gray tile, but I get a lot of artifacts when panning and zooming (see screenshot at https://ibb.co/VJZwbsN).Is there any better way to achieve this?
0
0
533
Jun ’20