another.im-ios/ConversationsClassic/View/Screens/Attachments/AttachmentHeader.swift

30 lines
792 B
Swift
Raw Normal View History

2024-07-02 09:56:27 +00:00
import SwiftUI
struct AttachmentHeader: View {
@EnvironmentObject var store: AppStore
var body: some View {
ZStack {
// bg
Color.Main.backgroundDark
.ignoresSafeArea()
// title
Text(L10n.Attachment.Prompt.main)
.font(.head2)
.foregroundColor(Color.Main.black)
HStack {
Spacer()
Image(systemName: "xmark")
.foregroundColor(Color.Tango.orangeMedium)
.tappablePadding(.symmetric(12)) {
store.dispatch(.conversationAction(.showAttachmentPicker(false)))
}
}
.padding(.horizontal, 16)
}
.frame(height: 44)
}
}