Skip to content

Commit

Permalink
Made changing the difficulty reset the grid.
Browse files Browse the repository at this point in the history
  • Loading branch information
abdel-17 committed Jul 4, 2022
1 parent b39989c commit e4a8ec2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Shared/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,13 @@ struct ContentView: View {
let height = bounds.size.height
GridView(state: $state,
lineWidth: 0.02 * min(width, height))
.onChange(of: state.difficulty) { _ in
state.willReset = true
}
.padding(0.1 * min(width, height))
.frame(width: width,
height: height)

}

HStack {
Expand Down

0 comments on commit e4a8ec2

Please sign in to comment.