conversations-classic-ios/ConversationsClassic/View/Screens/Attachments/AttachmentHeader.swift

30 lines
811 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
2024-07-04 08:21:12 +00:00
Color.Material.Background.dark
2024-07-02 09:56:27 +00:00
.ignoresSafeArea()
// title
Text(L10n.Attachment.Prompt.main)
.font(.head2)
2024-07-04 08:21:12 +00:00
.foregroundColor(Color.Material.Text.main)
2024-07-02 09:56:27 +00:00
HStack {
Spacer()
Image(systemName: "xmark")
2024-07-04 08:21:12 +00:00
.foregroundColor(Color.Material.Elements.active)
2024-07-02 09:56:27 +00:00
.tappablePadding(.symmetric(12)) {
store.dispatch(.conversationAction(.showAttachmentPicker(false)))
}
}
.padding(.horizontal, 16)
}
.frame(height: 44)
}
}