mirror of
https://github.com/luxwallet/ios.git
synced 2026-10-30 20:33:27 +00:00
24 lines
451 B
Swift
24 lines
451 B
Swift
import Foundation
|
|
import SwiftUI
|
|
import WidgetKit
|
|
|
|
struct SingleCoinPriceEntry: TimelineEntry {
|
|
let date: Date
|
|
let uid: String
|
|
let icon: Image?
|
|
let code: String
|
|
let price: String
|
|
let priceChange: String
|
|
let priceChangeType: PriceChangeType
|
|
let chartPoints: [ChartPoint]?
|
|
|
|
struct ChartPoint: Identifiable {
|
|
let date: Date
|
|
let value: Decimal
|
|
|
|
var id: Date {
|
|
date
|
|
}
|
|
}
|
|
}
|