mirror of
https://github.com/lumaa-dev/BubbleApp.git
synced 2025-01-28 09:19:17 +01:00
AppIntent fixes
This commit is contained in:
parent
1574357a95
commit
7a9d2c0f0e
@ -145,9 +145,8 @@ extension Visibility: AppEnum {
|
||||
|
||||
struct OpenAppIntent: AppIntent {
|
||||
static var title: LocalizedStringResource = "intent.open.app"
|
||||
static var description: IntentDescription? = IntentDescription("intent.open.app.description")
|
||||
|
||||
static var isDiscoverable: Bool = true
|
||||
static var isDiscoverable: Bool = false
|
||||
static var openAppWhenRun: Bool = true
|
||||
|
||||
static var authenticationPolicy: IntentAuthenticationPolicy = .requiresLocalDeviceAuthentication
|
||||
@ -155,6 +154,11 @@ struct OpenAppIntent: AppIntent {
|
||||
func perform() async throws -> some IntentResult {
|
||||
UniversalNavigator.static.selectedTab = .timeline
|
||||
UniversalNavigator.static.presentedSheet = nil
|
||||
|
||||
if UniversalNavigator.static.presentedCover != .welcome {
|
||||
UniversalNavigator.static.presentedCover = nil
|
||||
}
|
||||
|
||||
return .result()
|
||||
}
|
||||
}
|
||||
|
@ -13,8 +13,8 @@ struct CreatePostWidget: Widget {
|
||||
) { entry in
|
||||
CreatePostWidget.WidgetView()
|
||||
}
|
||||
.configurationDisplayName("widget.open.composer")
|
||||
.description("widget.open.composer")
|
||||
.configurationDisplayName(LocalizedStringKey("widget.open.composer"))
|
||||
.description(LocalizedStringKey("widget.open.composer"))
|
||||
.supportedFamilies([.systemSmall])
|
||||
.disfavoredLocations(
|
||||
[.standBy, .iPhoneWidgetsOnMac],
|
||||
|
Loading…
x
Reference in New Issue
Block a user