Mercurial > public > lazybear
comparison LazyBear/Views/Home/Helpers/SectorItem.swift @ 324:3e64824cca3e
Working on HomeView
author | Dennis Concepción Martín <66180929+denniscm190@users.noreply.github.com> |
---|---|
date | Mon, 29 Mar 2021 20:59:41 +0200 |
parents | |
children | 2fabdc393675 |
comparison
equal
deleted
inserted
replaced
323:65f537dae6e5 | 324:3e64824cca3e |
---|---|
1 // | |
2 // SectorItem.swift | |
3 // LazyBear | |
4 // | |
5 // Created by Dennis Concepción Martín on 28/3/21. | |
6 // | |
7 | |
8 import SwiftUI | |
9 | |
10 struct SectorItem: View { | |
11 @Environment(\.colorScheme) var colorScheme | |
12 | |
13 var body: some View { | |
14 Image("Technology") | |
15 .resizable() | |
16 .clipShape(Circle()) | |
17 .overlay(Circle().stroke(colorScheme == .dark ? Color(.secondarySystemBackground) : Color.white, lineWidth: 4)) | |
18 .shadow(color: Color.black.opacity(0.2), radius: 5) | |
19 .frame(width: 170, height: 170) | |
20 } | |
21 } | |
22 | |
23 struct SectorItem_Previews: PreviewProvider { | |
24 static var previews: some View { | |
25 SectorItem() | |
26 } | |
27 } |