comparison LazyBear/Views/Company/Helpers/InsiderRosterHelper.swift @ 446:9cc0455bc46f

Minor UI updates
author Dennis Concepción Martín <dennisconcepcionmartin@gmail.com>
date Tue, 22 Jun 2021 19:57:08 +0200
parents ffbb1dbab531
children 8621ba6fd457
comparison
equal deleted inserted replaced
445:7d1c4dc8d1d8 446:9cc0455bc46f
12 @State private var showList = false 12 @State private var showList = false
13 13
14 var body: some View { 14 var body: some View {
15 VStack(alignment: .leading) { 15 VStack(alignment: .leading) {
16 HStack { 16 HStack {
17 Text("Top 10 Insiders") 17 Text("Top Insiders")
18 .font(.title) 18 .font(.title)
19 .fontWeight(.semibold) 19 .fontWeight(.semibold)
20 20
21 Spacer() 21 Spacer()
22 Button("See all", action: { showList = true } ) 22 Button("See all", action: { showList = true } )
33 .padding() 33 .padding()
34 .background( 34 .background(
35 CustomRectangleBox() 35 CustomRectangleBox()
36 ) 36 )
37 .sheet(isPresented: $showList) { 37 .sheet(isPresented: $showList) {
38 InsiderRosterList(insiderRoster: insiderRoster) 38 InsiderRosterList(insiderRoster: insiderRoster, isPresented: $showList)
39 } 39 }
40 } 40 }
41 } 41 }
42 42
43 struct InsiderRosterHelper_Previews: PreviewProvider { 43 struct InsiderRosterHelper_Previews: PreviewProvider {