Added a divider to FetchAllTransactionsOverlay
This commit is contained in:
parent
db3a87b0c4
commit
2b2ede26fd
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue