Skip to content

Commit

Permalink
- fixed the tableview show animation when its presented above the dro…
Browse files Browse the repository at this point in the history
…pdown itself
  • Loading branch information
rursache committed Oct 5, 2023
1 parent 6d69be4 commit d269b02
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Files/RSDropDown.swift
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,10 @@ open class RSDropDown: UITextField {
}

private func animateTablePresentation() {
let finalYPosition = self.tableView.frame.origin.y
if self.willShowTableViewUp { self.tableView.frame.origin.y = self.frame.origin.y }
UIView.animate(withDuration: self.animationDuration, delay: 0, options: .curveEaseInOut) {
self.tableView.frame.origin.y = finalYPosition
self.tableView.frame.size.height = self.tableViewHeightX
self.tableView.alpha = 1
if self.showTableViewShadow { self.shadowView.alpha = 1 }
Expand Down

0 comments on commit d269b02

Please sign in to comment.