comparison LazyBear/Views/Global Helpers/RowShape.swift @ 438:7f2a24a774eb

Implement CompanyView networking
author Dennis Concepción Martín <dennisconcepcionmartin@gmail.com>
date Sun, 20 Jun 2021 13:20:19 +0200
parents 8c58ce834d95
children
comparison
equal deleted inserted replaced
437:5ca468751db2 438:7f2a24a774eb
11 @Environment(\.colorScheme) var colorScheme 11 @Environment(\.colorScheme) var colorScheme
12 12
13 var body: some View { 13 var body: some View {
14 RoundedRectangle(cornerRadius: 25) 14 RoundedRectangle(cornerRadius: 25)
15 .foregroundColor(Color("customSecondaryBackground")) 15 .foregroundColor(Color("customSecondaryBackground"))
16 .if(colorScheme == .light) { content in 16 .if(colorScheme == .light) { content in /// Apply shadow only when is not dark mode
17 // Apply shadow only when is not dark mode
18 content 17 content
19 .shadow(color: Color(.gray).opacity(0.15), radius: 10) 18 .shadow(color: Color(.gray).opacity(0.15), radius: 10)
20 } 19 }
21 } 20 }
22 } 21 }