Skip to content

Commit

Permalink
Merge pull request #478 from hyun99999/feature/#473
Browse files Browse the repository at this point in the history
fix: 바텀시트 내려가는 속도 조절 (#473)
  • Loading branch information
hyun99999 authored May 6, 2023
2 parents a6c2baf + 4709c1e commit 9ad7a0a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class AddGroupBottomSheetViewController: CommonBottomSheetViewController, UIText
let safeAreaHeight = view.safeAreaLayoutGuide.layoutFrame.height
let bottomPadding = view.safeAreaInsets.bottom
bottomSheetViewTopConstraint?.constant = safeAreaHeight + bottomPadding
UIView.animate(withDuration: 0.2, delay: 0, options: .curveEaseOut, animations: {
UIView.animate(withDuration: 0.5, delay: 0, options: .curveEaseOut, animations: {
self.dimmedBackView.alpha = 0.0
self.view.layoutIfNeeded()
self.bottomSheetCoverView.isHidden = false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ class CommonBottomSheetViewController: UIViewController {
let safeAreaHeight = view.safeAreaLayoutGuide.layoutFrame.height
let bottomPadding = view.safeAreaInsets.bottom
bottomSheetViewTopConstraint.constant = safeAreaHeight + bottomPadding
UIView.animate(withDuration: 0.2, delay: 0, options: .curveEaseOut, animations: {
UIView.animate(withDuration: 0.5, delay: 0, options: .curveEaseOut, animations: {
self.dimmedBackView.alpha = 0.0
self.view.layoutIfNeeded()
self.bottomSheetCoverView.isHidden = false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class GroupNameEditBottomSheetViewController: CommonBottomSheetViewController, U
let safeAreaHeight = view.safeAreaLayoutGuide.layoutFrame.height
let bottomPadding = view.safeAreaInsets.bottom
bottomSheetViewTopConstraint?.constant = safeAreaHeight + bottomPadding
UIView.animate(withDuration: 0.2, delay: 0, options: .curveEaseOut, animations: {
UIView.animate(withDuration: 0.5, delay: 0, options: .curveEaseOut, animations: {
self.dimmedBackView.alpha = 0.0
self.view.layoutIfNeeded()
self.bottomSheetCoverView.isHidden = false
Expand Down

0 comments on commit 9ad7a0a

Please sign in to comment.