Skip to content

Commit

Permalink
Use legacy previews
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrandonw committed Sep 26, 2024
1 parent f508c04 commit dab769f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Examples/Examples/ExamplesApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ class ItemsModel {
}
}

#Preview {
let model = ItemsModel()
Text(model.lastItem?.description ?? "No last item")
struct Previews: PreviewProvider {
static var previews: some View {
let model = ItemsModel()
Text(model.lastItem?.description ?? "No last item")
}
}

0 comments on commit dab769f

Please sign in to comment.