Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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