Skip to content

Commit

Permalink
added share button to notification preferences
Browse files Browse the repository at this point in the history
  • Loading branch information
Mcrich23 committed Jun 12, 2023
1 parent 2c5e07b commit f0583bd
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@ struct NotificationPreferencesBody: View {
}
}
Spacer()
Button {
Mcrich23_Toolkit.presentShareSheet(activityItems: [ "https://bridges.mcrich23.com/notifications/\(Utilities.deviceID ?? "")/\(preference.id)" ], excludedActivityTypes: [])
} label: {
Image(systemName: "square.and.arrow.up")
}
.hoverEffect(.highlight)
Button {
preferencesModel.duplicateNotificationPreferenceAlert(basedOn: preference, onDone: {})
} label: {
Expand Down

0 comments on commit f0583bd

Please sign in to comment.