I have been polishing an app that connects and communicates between a tvOS app I created and a iPadOS app that I also created. Connection works fantastic! However, for some reason when the user selects the button to open the DevicePicker provided by this API and then selects a iPad device the notification that comes across the the iPad reads, "Connect your Apple TV to "AppName" on this iPhone.
Is this a bug or am I missing some configuration in maybe Info.plist or a modifier I need to add the DevicePicker for it to communicate the proper device identification? I have everything setup in both app Info.plist files to connect and work fine, but the notification saying iPhone on an iPad is sadly a small detail I would love to change. So...not sure if I found a bug or if I am missing something.
Post
Replies
Boosts
Views
Activity
I have the following code that works well if you tap the escape key to cancel, but whether I use .defaultAction, or select .return, modifiers: [] neither work. I also have multiple alerts I am trying to use the return key for whenever they appear. Does anyone know how I can accomplish setting the action to be taken on an alert to the return? I also wonder does having it be a destructive action matter whether a keyboardShortcut modifier works or not? Thanks for any help. You rock!
.alert("Alert User", isPresented: $isButtonTapped) {
Button("No", role: .cancel) {
isButtonTapped = false
}
.keyboardShortcut(.escape, modifiers: [])
Button("Yes", role: .destructive) {
model.reset()
isButtonTapped = false
}
.keyboardShortcut(.defaultAction)
} message: {
Text("Are you sure you want to do this? This action resets everything.")
}