-
-
Save sturdysturge/a0d6cc8bfc95215aa964603e8c3fae7e to your computer and use it in GitHub Desktop.
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
struct TickerDetailView: View { | |
@EnvironmentObject var dataModel: DataModel | |
let index: Int | |
var body: some View { | |
Group { | |
if let image = dataModel.image { | |
Image(uiImage: image) | |
.resizable() | |
.scaledToFit() | |
} | |
if let ticker = dataModel.tickerData?.tickers[index] { | |
TickerTextView(ticker: ticker) | |
} | |
Spacer() | |
RefreshView() | |
} | |
.padding() | |
.frame(maxHeight: .infinity) | |
.background(Color.white) | |
.foregroundColor(.black) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment