Center the Post Button
Closes: #245 Changelog-Changed: Center the Post Button
This commit is contained in:
@@ -10,19 +10,18 @@ import SwiftUI
|
|||||||
|
|
||||||
func PostButton(action: @escaping () -> ()) -> some View {
|
func PostButton(action: @escaping () -> ()) -> some View {
|
||||||
return Button(action: action, label: {
|
return Button(action: action, label: {
|
||||||
Text("+")
|
Image(systemName: "plus")
|
||||||
.font(.system(.largeTitle))
|
.font(.system(.title2))
|
||||||
.frame(width: 57, height: 50)
|
|
||||||
.foregroundColor(Color.white)
|
.foregroundColor(Color.white)
|
||||||
.padding(.bottom, 7)
|
.frame(width: 57, height: 57, alignment: .center)
|
||||||
|
.background(Color.accentColor)
|
||||||
|
.cornerRadius(38.5)
|
||||||
|
.padding()
|
||||||
|
.shadow(color: Color.black.opacity(0.3),
|
||||||
|
radius: 3,
|
||||||
|
x: 3,
|
||||||
|
y: 3)
|
||||||
})
|
})
|
||||||
.background(Color.accentColor)
|
|
||||||
.cornerRadius(38.5)
|
|
||||||
.padding()
|
|
||||||
.shadow(color: Color.black.opacity(0.3),
|
|
||||||
radius: 3,
|
|
||||||
x: 3,
|
|
||||||
y: 3)
|
|
||||||
.keyboardShortcut("n", modifiers: [.command, .shift])
|
.keyboardShortcut("n", modifiers: [.command, .shift])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user