Skip to content

Commit

Permalink
Fixed Date+Time Picker UI Glitches.
Browse files Browse the repository at this point in the history
  • Loading branch information
aumChauhan committed Jan 27, 2024
1 parent 395cd73 commit a262e95
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ private struct MUIDatePickerView: View {
.padding(15)
.shadow(color: .black.opacity(0.1), radius: 10, x: 0, y: 1)
}
.frame(width: UIScreen.main.bounds.width)
// In Animation
.scaleEffect(animationFlag ? 1 : 0)
.opacity(animationFlag ? 1 : 0)
Expand Down Expand Up @@ -165,7 +166,7 @@ extension MUIDatePickerView {

dismissDatePicker()
}
.frame(width: UIScreen.main.bounds.height)
.frame(width: UIScreen.main.bounds.height, height: UIScreen.main.bounds.height / 1.2)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ private struct MUITimePickerView: View {
.padding(15)
.shadow(color: .black.opacity(0.1), radius: 10, x: 0, y: 1)
}
.frame(width: UIScreen.main.bounds.width)
// In Animation
.scaleEffect(animationFlag ? 1 : 0)
.opacity(animationFlag ? 1 : 0)
Expand Down Expand Up @@ -165,6 +166,6 @@ extension MUITimePickerView {

dismissDatePicker()
}
.frame(width: UIScreen.main.bounds.height)
.frame(width: UIScreen.main.bounds.height, height: UIScreen.main.bounds.height / 1.2)
}
}

0 comments on commit a262e95

Please sign in to comment.