Skip to content

Instantly share code, notes, and snippets.

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)
if let ticker = dataModel.tickerData?.tickers[index] {
TickerTextView(ticker: ticker)
.frame(maxHeight: .infinity)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment