Mercurial > public > simoleon
view Simoleon/Helpers/CurrencyBox.swift @ 183:d2398f02e1ce
implement unit currency selector
author | Dennis Concepcion Martin <dennisconcepcionmartin@gmail.com> |
---|---|
date | Mon, 20 Dec 2021 12:28:16 +0100 |
parents | |
children |
line wrap: on
line source
// // CurrencyBox.swift // Simoleon // // Created by Dennis Concepción Martín on 8/12/21. // import SwiftUI struct CurrencyBox: View { var body: some View { RoundedRectangle(cornerRadius: 15) .foregroundColor(Color(.secondarySystemBackground)) .frame(height: 60) .overlay( HStack { Image("FLAG_NAME") .resizable() .aspectRatio(contentMode: .fill) .frame(width: 35, height: 35) .clipShape(Circle()) } ) } } struct CurrencyBox_Previews: PreviewProvider { static var previews: some View { CurrencyBox() } }