diff --git a/ui/BankingiOSApp/BankingiOSApp/ui/views/AccountTransactionsDialog.swift b/ui/BankingiOSApp/BankingiOSApp/ui/views/AccountTransactionsDialog.swift index 038b02d9..15b9feda 100644 --- a/ui/BankingiOSApp/BankingiOSApp/ui/views/AccountTransactionsDialog.swift +++ b/ui/BankingiOSApp/BankingiOSApp/ui/views/AccountTransactionsDialog.swift @@ -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 diff --git a/ui/BankingiOSApp/BankingiOSApp/ui/views/Divider.swift b/ui/BankingiOSApp/BankingiOSApp/ui/views/Divider.swift new file mode 100644 index 00000000..8d5275e3 --- /dev/null +++ b/ui/BankingiOSApp/BankingiOSApp/ui/views/Divider.swift @@ -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() + } + +}