@@ -28,6 +28,14 @@ struct BrowserMenuView: View {
2828 UIApplication . shared. open ( url)
2929 }
3030
31+ func discordTriangleDrawAction( ) {
32+ guard let url: URL = URL ( string: " http://triangledraw.com/discord " ) else {
33+ print ( " Unable to create url. Cannot open browser. " )
34+ return
35+ }
36+ UIApplication . shared. open ( url)
37+ }
38+
3139 var emailDeveloperButton : some View {
3240 #if os(iOS)
3341 let view = MailButtonView (
@@ -42,21 +50,25 @@ struct BrowserMenuView: View {
4250 var body : some View {
4351 NavigationView {
4452 Form {
45- Section ( header: Text ( " Help needed " ) ) {
53+ Section ( header: Text ( " Community " ) ) {
54+ Button (
55+ " Chat about TriangleDraw on Discord " ,
56+ action: discordTriangleDrawAction
57+ )
4658 Button (
47- " Write review for App Store" ,
59+ " Please write a review on the App Store" ,
4860 action: appStoreWriteReviewAction
4961 )
5062 }
5163 Section ( header: Text ( " Development " ) ) {
52- Button (
53- " GitHub - TriangleDraw-iOS " ,
54- action: githubTriangleDrawRepositoryAction
55- )
5664 Button (
5765 " GitHub - TriangleDraw-Gallery " ,
5866 action: githubTriangleDrawGalleryAction
5967 )
68+ Button (
69+ " GitHub - TriangleDraw-iOS " ,
70+ action: githubTriangleDrawRepositoryAction
71+ )
6072 emailDeveloperButton
6173 }
6274 Section ( header: Text ( " App info " ) ) {
0 commit comments