Files
damus/damus/Views/PostButton.swift
William Casarin 300cae6800 Revert "ui: Add more padding everywhere."
This reverts commit 36107a2752.
2022-12-17 17:01:54 -08:00

39 lines
785 B
Swift

//
// PostButton.swift
// damus
//
// Created by William Casarin on 2022-04-11.
//
import Foundation
import SwiftUI
func PostButton(action: @escaping () -> ()) -> some View {
return Button(action: action, label: {
Text("+")
.font(.system(.largeTitle))
.frame(width: 57, height: 50)
.foregroundColor(Color.white)
.padding(.bottom, 7)
})
.background(Color.blue)
.cornerRadius(38.5)
.padding()
.shadow(color: Color.black.opacity(0.3),
radius: 3,
x: 3,
y: 3)
}
func PostButtonContainer(action: @escaping () -> ()) -> some View {
return VStack {
Spacer()
HStack {
Spacer()
PostButton(action: action)
}
}
}