Hi,
I have an app that provides a SmartStack Widget.
The content in that widget is dependent on a state inside the application so from time to time the app needs to update the widget state.
I tried:
WidgetCenter.shared.invalidateConfigurationRecommendations()
WidgetCenter.shared.reloadAllTimelines()
However this does not have any effect.
I only see updates on reboots (device with watchOS 11 B5)
Is there any other way or am I doing something wrong?
Post
Replies
Boosts
Views
Activity
I would be great if the watchOS can adopt some of the new App Intents for the Action Button on iOS.
On Apple Watch Ultra this is still limited on workout related Intents (However system apps like flash light can do more).
See als this FB:
FB11699104 (opened in 2022)
Best regards
Arno
Hi,
I am struggling with a design change in watchOS 10.
I have a TextField next to an Image in an HStack inside a List
The following code produces another (correct looking view) when using watchOS9.
With watchOS10 a strange background is added that I can not remove.
struct ContentView: View {
@State private var searchFieldInput: String = ""
var body: some View {
List {
HStack{
Image(systemName: "magnifyingglass").foregroundColor(.accentColor)
TextField("Search", text: $searchFieldInput)
}
}
}
}
This picture shows the difference:
(watchOS 9 on the left; watchOS 10 on the right
Does anybody know how to remove this background or if this intentionally?
I already filed a Feedback (FB12293618) but haven't heard back yet
Hi,
It seems that Xcode 12 Beta 3 is not yet supported by AppStoreConnect Backend.
Anyone else seeing this when uploading Archives.
Best regards,
Arno
Hi I have an app that acts similar to the Apple News Widget (Outside the US,UK and Canada it just shows some headlines from across the web).
The News widget opens Safari if I press a headline and leads me to the article.
How can I achieve the same? Providing a web URL with widgetUrl stills opens the main app
Hi,
In my previous post it was suggested to use MKMapSnapshotter to create Widgets containing map data.
Now I wonder how I can create the right screenshot for the rect defined by MKMapSnapshotter size according to the current Widget size. It seems that the size differs by device and by widget size.
Hi,
I'm trying to Display a MapView like the sytem Maps app does in a Widget.
I thought the best way would be to encapsulate the Mapview in a UIViewRepresentable like this:
struct MapView: UIViewRepresentable {
func makeUIView(context: UIViewRepresentableContext<MapView>) -> MKMapView {
let mapView = MKMapView()
return mapView
}
func updateUIView(_ view: MKMapView, context: UIViewRepresentableContext<MapView>) {
}
}
And show it like this in my Widget:
struct MapWidgetEntryView : View {
var entry: Provider.Entry
var body: some View {
VStack {
MapView()
}
}
}
Unfortunately this leads to this error:
RemoteHumanReadableError: The operation couldn’t be completed. (BSServiceConnectionErrorDomain error 3.)
BSServiceConnectionErrorDomain (3):
==BSErrorCodeDescription: OperationFailed
I also tested this with other UIKit classes and it leads to the same error
Hi,
It seems that the Link Object in SwiftUI is dedicated to link to a webpage like this:
Link(destination: policyURL!) {
Text("Link")
}
Unfortunately it is not functional on watchOS. If I provide a weburl to it, it says the operation is not supported.
Best regards,
Arno