Make dropdown menu in IOS app with swift

Solutions Collect From Internet About “Make dropdown menu in IOS app with swift”

I achieved similar feature on Objective-C, hope the same concept can be applied on swift.

I actually subclass a UITableView with some customized functions and variables, then instantiate the class with desired coordination and dimension and use UITableViewDelegate methods to trigger the events needed.