Avatar ·

How to implement a bottom sheet panel like in the Apple Maps app on iOS?

Hi everyone! I'm a beginner in iOS development with Swift and I'm trying to create an interface similar to the Apple Maps app. I need a panel that slides up from the bottom of the screen with information about a place, which can be dragged up/down and snaps to two positions: partially open (shows only the title) and fully open (shows all content). I tried using UIScrollView with delegate and animations, but it turned out poorly: the panel jerks, doesn't stop smoothly, and if there's a UITableView inside the UIScrollView, the drag gestures conflict. Here's what I've sketched: ```swift class BottomSheetViewController: UIViewController { @IBOutlet weak var bottomSheetView: UIView! @IBOutlet weak var bottomConstraint: NSLayoutConstraint! override fu