Mercurial > public > geoquiz
diff GeoQuiz/GuessTheCapitalView.swift @ 15:f1967f8cc67b
first iteration of core data
author | Dennis C. M. <dennis@denniscm.com> |
---|---|
date | Wed, 19 Oct 2022 10:04:17 +0200 |
parents | a793f33f05fb |
children | f140bb277c96 |
line wrap: on
line diff
--- a/GeoQuiz/GuessTheCapitalView.swift Wed Oct 19 07:56:33 2022 +0200 +++ b/GeoQuiz/GuessTheCapitalView.swift Wed Oct 19 10:04:17 2022 +0200 @@ -10,6 +10,8 @@ struct GuessTheCapitalView: View { @StateObject var game = CountryGame() + @Environment(\.managedObjectContext) var moc + var body: some View { ZStack { LinearGradient(gradient: .secondary, startPoint: .top, endPoint: .bottom) @@ -62,7 +64,7 @@ } } .navigationBarHidden(true) - .modifier(GameAlertsModifier(game: game)) + .modifier(GameAlertsModifier(game: game, gameType: .guessTheCapital, moc: moc)) } }