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.
Post
Replies
Boosts
Views
Activity
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?
When I run my app from Xcode 12b1 and hit a break point, LLDB says "Cannot create Swift scratch context (couldn't load the Swift stdlib)" and any subsequent commands like "po" seem to do nothing. Who can I fix this?
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?