mirror of
https://github.com/lumaa-dev/BubbleApp.git
synced 2025-02-03 03:47:43 +01:00
Added mention support
This commit is contained in:
parent
924861c496
commit
cb7dad05b4
@ -4,6 +4,7 @@ import SwiftUI
|
|||||||
import MessageUI
|
import MessageUI
|
||||||
|
|
||||||
struct SupportView: View {
|
struct SupportView: View {
|
||||||
|
@Environment(UniversalNavigator.self) private var uniNav: UniversalNavigator
|
||||||
@Environment(AppDelegate.self) private var appDelegate: AppDelegate
|
@Environment(AppDelegate.self) private var appDelegate: AppDelegate
|
||||||
@Environment(\.openURL) private var openURL
|
@Environment(\.openURL) private var openURL
|
||||||
|
|
||||||
@ -27,6 +28,9 @@ struct SupportView: View {
|
|||||||
matrixSupport
|
matrixSupport
|
||||||
.listRowThreaded()
|
.listRowThreaded()
|
||||||
|
|
||||||
|
mentionAccount
|
||||||
|
.listRowThreaded()
|
||||||
|
|
||||||
mailApp
|
mailApp
|
||||||
.listRowThreaded()
|
.listRowThreaded()
|
||||||
}
|
}
|
||||||
@ -102,6 +106,35 @@ struct SupportView: View {
|
|||||||
.boxify(appDelegate.windowWidth - 50,bgColor: Color.mountainMeadow)
|
.boxify(appDelegate.windowWidth - 50,bgColor: Color.mountainMeadow)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var mentionAccount: some View {
|
||||||
|
VStack(alignment: .center) {
|
||||||
|
Image(systemName: "at")
|
||||||
|
.mark()
|
||||||
|
.foregroundStyle(Color(uiColor: UIColor.label))
|
||||||
|
|
||||||
|
Text("support.mention")
|
||||||
|
.font(.title.bold())
|
||||||
|
|
||||||
|
Text("support.mention.description")
|
||||||
|
.padding(.horizontal)
|
||||||
|
.lineLimit(3, reservesSpace: true)
|
||||||
|
|
||||||
|
Button {
|
||||||
|
uniNav.presentedSheet = .post(content: "@Threaded@mastodon.online", replyId: nil, editId: nil)
|
||||||
|
} label: {
|
||||||
|
Text("support.mention.post")
|
||||||
|
.foregroundStyle(Color(uiColor: UIColor.systemBackground))
|
||||||
|
.padding(.horizontal, 20)
|
||||||
|
.padding(.vertical, 10)
|
||||||
|
}
|
||||||
|
.zIndex(10.0)
|
||||||
|
.buttonStyle(.borderedProminent)
|
||||||
|
.tint(Color(uiColor: UIColor.label))
|
||||||
|
.padding(.vertical)
|
||||||
|
}
|
||||||
|
.boxify(appDelegate.windowWidth - 50, bgColor: Color(uiColor: UIColor.label))
|
||||||
|
}
|
||||||
|
|
||||||
var mailApp: some View {
|
var mailApp: some View {
|
||||||
VStack(alignment: .center) {
|
VStack(alignment: .center) {
|
||||||
Image(systemName: "envelope.fill")
|
Image(systemName: "envelope.fill")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user