Added a divider to FetchAllTransactionsOverlay

This commit is contained in:
dankito 2020-09-03 12:02:56 +02:00
parent db3a87b0c4
commit 2b2ede26fd
2 changed files with 32 additions and 1 deletions

View File

@ -139,12 +139,14 @@ struct AccountTransactionsDialog: View {
Spacer()
}
.padding(.horizontal, 6)
Spacer()
}
.frame(height: 40)
.padding(.horizontal, 6)
.padding(0)
.systemGroupedBackground()
.overlay(Divider(), alignment: .top)
}
}
.alert(item: $errorMessage) { message in

View File

@ -0,0 +1,29 @@
import SwiftUI
struct Divider: View {
let height: CGFloat = 1
let color: Color = Color.black
var body: some View {
Rectangle()
.frame(height: height)
.background(color)
.listRowInsets(EdgeInsets())
.edgesIgnoringSafeArea(.horizontal)
.padding(0)
}
}
struct Line_Previews: PreviewProvider {
static var previews: some View {
Divider()
}
}