This commit is contained in:
marcosrdz 2021-02-17 00:01:29 -05:00
parent 2b5150e14a
commit d0a7223aae
4 changed files with 4 additions and 4 deletions

View File

@ -11,7 +11,7 @@ import SwiftUI
struct Provider: TimelineProvider {
func placeholder(in context: Context) -> SimpleEntry {
SimpleEntry(date: Date(), marketData: emptyMarketData)
return SimpleEntry(date: Date(), marketData: MarketData(nextBlock: "26", sats: "9 134", price: "$10,000", rate: 10000), allWalletsBalance: WalletData(balance: 1000000, latestTransactionTime: LatestTransaction(isUnconfirmed: false, epochValue: 1568804029000)))
}
func getSnapshot(in context: Context, completion: @escaping (SimpleEntry) -> ()) {

View File

@ -11,7 +11,7 @@ import SwiftUI
struct Provider: TimelineProvider {
func placeholder(in context: Context) -> SimpleEntry {
SimpleEntry(date: Date(), marketData: emptyMarketData)
return SimpleEntry(date: Date(), marketData: MarketData(nextBlock: "26", sats: "9 134", price: "$10 000", rate: 10000))
}
func getSnapshot(in context: Context, completion: @escaping (SimpleEntry) -> ()) {

View File

@ -13,7 +13,7 @@ var marketData: [MarketDataTimeline: MarketData?] = [ .Current: nil, .Previous:
struct Provider: TimelineProvider {
func placeholder(in context: Context) -> SimpleEntry {
SimpleEntry(date: Date(), currentMarketData: nil)
return SimpleEntry(date: Date(), currentMarketData: MarketData(nextBlock: "", sats: "", price: "$10,000", rate: 10000, dateString: "2019-09-18T17:27:00+00:00"))
}
func getSnapshot(in context: Context, completion: @escaping (SimpleEntry) -> ()) {

View File

@ -11,7 +11,7 @@ import SwiftUI
struct Provider: TimelineProvider {
func placeholder(in context: Context) -> SimpleEntry {
SimpleEntry(date: Date(), marketData: emptyMarketData)
return SimpleEntry(date: Date(), marketData: MarketData(nextBlock: "26", sats: "9 134", price: "$10,000", rate: 10000), allWalletsBalance: WalletData(balance: 1000000, latestTransactionTime: LatestTransaction(isUnconfirmed: false, epochValue: 1568804029000)))
}
func getSnapshot(in context: Context, completion: @escaping (SimpleEntry) -> ()) {