Mercurial > public > lazybear
comparison LazyBear/Views/Home/HomeView.swift @ 338:71a9c0e61783
Implementing SearchView
author | Dennis Concepción Martín <66180929+denniscm190@users.noreply.github.com> |
---|---|
date | Thu, 01 Apr 2021 20:55:09 +0200 |
parents | 31f2838b2de7 |
children | e81c18164afb |
comparison
equal
deleted
inserted
replaced
337:31f2838b2de7 | 338:71a9c0e61783 |
---|---|
32 TopStockRow(key: key, list: homeData.list[key] ?? [CompanyRowModel](), intradayPricesDict: homeData.intradayPrices) | 32 TopStockRow(key: key, list: homeData.list[key] ?? [CompanyRowModel](), intradayPricesDict: homeData.intradayPrices) |
33 } | 33 } |
34 .listRowInsets(EdgeInsets()) | 34 .listRowInsets(EdgeInsets()) |
35 } | 35 } |
36 .onReceive(timer) {_ in homeData.request() } | 36 .onReceive(timer) {_ in homeData.request() } |
37 .onDisappear { timer.upstream.connect().cancel() } | |
37 .navigationTitle("\(dueDate, formatter: Self.taskDateFormat)") | 38 .navigationTitle("\(dueDate, formatter: Self.taskDateFormat)") |
38 .navigationBarTitleDisplayMode(.inline) | 39 .navigationBarTitleDisplayMode(.inline) |
39 .navigationViewStyle(StackNavigationViewStyle()) | 40 .navigationViewStyle(StackNavigationViewStyle()) |
40 .toolbar { | 41 .toolbar { |
41 ToolbarItem(placement: .navigationBarTrailing) { | 42 ToolbarItem(placement: .navigationBarTrailing) { |
44 } | 45 } |
45 } | 46 } |
46 } | 47 } |
47 } | 48 } |
48 .sheet(isPresented: $showTradingDates) { | 49 .sheet(isPresented: $showTradingDates) { |
49 // TradingDates(stringDates: homeData.holidayDates) | 50 TradingDates(stringDates: homeData.holidayDates) |
50 } | 51 } |
51 } else { | 52 } else { |
52 ProgressView() | 53 ProgressView() |
53 .onAppear { homeData.request() } | 54 .onAppear { homeData.request() } |
54 } | 55 } |