mirror of
https://github.com/Matte23/circolapp.git
synced 2025-12-05 23:19:10 +00:00
Fix some url broken on iOS
This commit is contained in:
@@ -33,7 +33,7 @@ struct AttachmentView: View {
|
|||||||
Spacer()
|
Spacer()
|
||||||
|
|
||||||
Button(action: {
|
Button(action: {
|
||||||
guard let url = URL(string: attachmentUrl) else { return }
|
guard let url = URL(string: attachmentUrl.addingPercentEncoding(withAllowedCharacters: .urlFragmentAllowed)!) else { return }
|
||||||
UIApplication.shared.open(url)
|
UIApplication.shared.open(url)
|
||||||
}) {
|
}) {
|
||||||
Image(systemName: "envelope.open")
|
Image(systemName: "envelope.open")
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ struct CircularView: View {
|
|||||||
if showDetail {
|
if showDetail {
|
||||||
HStack {
|
HStack {
|
||||||
Button(action: {
|
Button(action: {
|
||||||
guard let url = URL(string: circular.url) else { return }
|
guard let url = URL(string: circular.url.addingPercentEncoding(withAllowedCharacters: .urlFragmentAllowed)!) else { return }
|
||||||
UIApplication.shared.open(url)
|
UIApplication.shared.open(url)
|
||||||
}) {
|
}) {
|
||||||
Image(systemName: "envelope.open")
|
Image(systemName: "envelope.open")
|
||||||
|
|||||||
Reference in New Issue
Block a user