.confirmationDialog(NSLocalizedString("Actions",comment:"Title for confirmation dialog to either share, report, or block a profile."),isPresented:$action_sheet_presented){
Button(NSLocalizedString("Share",comment:"Button to share the link to a profile.")){
Button(NSLocalizedString("Report",comment:"Button to report a profile."),role:.destructive){
lettarget:ReportTarget=.user(profile.pubkey)
notify(.report,target)
}
Button(NSLocalizedString("Block",comment:"Button to block a profile."),role:.destructive){
notify(.block,profile.pubkey)
}
}
}
}
varShareButton:someView{
@ -375,23 +393,6 @@ struct ProfileView: View {
}
}
}
.confirmationDialog(NSLocalizedString("Actions",comment:"Title for confirmation dialog to either share, report, or block a profile."),isPresented:$action_sheet_presented){
Button(NSLocalizedString("Share",comment:"Button to share the link to a profile.")){