comparison 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
comparison
equal deleted inserted replaced
182:ba3ebe8cefe5 183:d2398f02e1ce
1 //
2 // CurrencyBox.swift
3 // Simoleon
4 //
5 // Created by Dennis Concepción Martín on 8/12/21.
6 //
7
8 import SwiftUI
9
10 struct CurrencyBox: View {
11 var body: some View {
12 RoundedRectangle(cornerRadius: 15)
13 .foregroundColor(Color(.secondarySystemBackground))
14 .frame(height: 60)
15 .overlay(
16 HStack {
17 Image("FLAG_NAME")
18 .resizable()
19 .aspectRatio(contentMode: .fill)
20 .frame(width: 35, height: 35)
21 .clipShape(Circle())
22 }
23 )
24 }
25 }
26
27 struct CurrencyBox_Previews: PreviewProvider {
28 static var previews: some View {
29 CurrencyBox()
30 }
31 }