-
Notifications
You must be signed in to change notification settings - Fork 251
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial (not complete) implementation of CoinOverview module in SwiftUI
- Loading branch information
Showing
9 changed files
with
410 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
UnstoppableWallet/UnstoppableWallet/Modules/Chart/ChartView.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import Chart | ||
import SwiftUI | ||
import UIKit | ||
|
||
struct ChartView: UIViewRepresentable { | ||
typealias UIViewType = UIView | ||
|
||
let viewModel: IChartViewModel & IChartViewTouchDelegate | ||
let configuration: ChartConfiguration | ||
|
||
func makeUIView(context _: Context) -> UIView { | ||
let chartView = ChartUiView(viewModel: viewModel, configuration: configuration) | ||
chartView.setContentHuggingPriority(.required, for: .vertical) | ||
chartView.onLoad() | ||
return chartView | ||
} | ||
|
||
func updateUIView(_: UIView, context _: Context) {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.