# PopView **Repository Path**: chengfeisoft/PopView ## Basic Information - **Project Name**: PopView - **Description**: 从底部弹出自定义的View - **Primary Language**: Swift - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 9 - **Forks**: 3 - **Created**: 2016-03-28 - **Last Updated**: 2025-07-24 ## Categories & Tags **Categories**: android-modules **Tags**: None ## README ## Description ![输入图片说明](http://git.oschina.net/uploads/images/2016/0328/171957_0ef4bcae_302364.gif "在这里输入图片标题") ## Requirements - iOS 8.0+ / Mac OS X 10.9+ / tvOS 9.0+ / watchOS 2.0+ - Xcode 7.1+ ## How to use PageMenu ```swift let v = PopBottomView(frame: self.view.bounds) v.dataSource = self v.delegate = self v.showInView(self.view) ``` **1) Delegate Methods** In order to use the delegate methods first set the delegate of pop view to the parent view controller when setting it up Swift ```swift // Optional delegate popBottomView.delegate = self ``` After that you will be able to set up the following delegate methods inside of your parent view controller ```swift optional func viewWillAppear() optional func viewWillDisappear() ``` ## Customization There are many ways you are able to customize pop view for your needs and there will be more customizations coming in the future to make sure pop view conforms to your app design. These will all be properties in PopView that can be changed from your base view controller. (Property names given with each item below) **1) Background** * Background color behind the pop view to blend in view controller backgrounds optional func isEffectView() -> Bool