Merge branch 'main' of github.com:binwiederhier/ntfy-ios

This commit is contained in:
Philipp Heckel 2022-05-25 15:04:58 -04:00
commit 2b227d4e3b
2 changed files with 16 additions and 4 deletions

View file

@ -144,8 +144,14 @@ struct NotificationListView: View {
.foregroundColor(.gray)
.multilineTextAlignment(.center)
.padding(.bottom)
Text("To send notifications to this topic, simply PUT or POST to the topic URL.\n\nExample:\n`$ curl -d \"hi\" ntfy.sh/\(subscription.topicName())`\n\nDetailed instructions are available on [ntfy.sh](https;//ntfy.sh) and [in the docs](https:ntfy.sh/docs).")
.foregroundColor(.gray)
if #available(iOS 15.0, *) {
Text("To send notifications to this topic, simply PUT or POST to the topic URL.\n\nExample:\n`$ curl -d \"hi\" ntfy.sh/\(subscription.topicName())`\n\nDetailed instructions are available on [ntfy.sh](https://ntfy.sh) and [in the docs](https://ntfy.sh/docs).")
.foregroundColor(.gray)
} else {
Text("To send notifications to this topic, simply PUT or POST to the topic URL.\n\nExample:\n`$ curl -d \"hi\" ntfy.sh/\(subscription.topicName())`\n\nDetailed instructions are available on https://ntfy.sh and https://ntfy.sh/docs.")
.foregroundColor(.gray)
}
}
.padding(40)
}

View file

@ -66,8 +66,14 @@ struct SubscriptionListView: View {
.foregroundColor(.gray)
.multilineTextAlignment(.center)
.padding(.bottom)
Text("Click the + to create or subscribe to a topic. Afterwards, you receive notifications on your device when sending messages via PUT or POST.\n\nDetailed instructions are available on [ntfy.sh](https;//ntfy.sh) and [in the docs](https:ntfy.sh/docs).")
.foregroundColor(.gray)
if #available(iOS 15.0, *) {
Text("Click the + to create or subscribe to a topic. Afterwards, you receive notifications on your device when sending messages via PUT or POST.\n\nDetailed instructions are available on [ntfy.sh](https://ntfy.sh) and [in the docs](https://ntfy.sh/docs).")
.foregroundColor(.gray)
} else {
Text("Click the + to create or subscribe to a topic. Afterwards, you receive notifications on your device when sending messages via PUT or POST.\n\nDetailed instructions are available on https://ntfy.sh and https://ntfy.sh/docs")
.foregroundColor(.gray)
}
}
.padding(40)
}