comparison LazyBear/Views/Global Helpers/RowShape.swift @ 428:8c58ce834d95

Bug fixes and change assets
author Dennis Concepción Martín <66180929+denniscm190@users.noreply.github.com>
date Fri, 18 Jun 2021 12:43:17 +0200
parents 6dd97877f575
children 7f2a24a774eb
comparison
equal deleted inserted replaced
427:e707dbfc3115 428:8c58ce834d95
10 struct RowShape: View { 10 struct RowShape: View {
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
17 // Apply shadow only when is not dark mode 17 // Apply shadow only when is not dark mode
18 content 18 content
19 .shadow(color: Color(.gray).opacity(0.15), radius: 10) 19 .shadow(color: Color(.gray).opacity(0.15), radius: 10)
20 } 20 }