IAMPopup
is a simple class for expressing custom popup in various forms. This includes where to display the popup and space to decorate the View.
Please feel free to contribute to this project, open issues, make suggestions and submit pull-requests. If you use this project in your app, let me know. I'd love to see what you do with it.
Specifies the height of the popup view and customizes the inner view.
// Top Popup
self.view.IAM_top(height: 100) { popupView in
popupView.addSubview(self.label)
self.label.text = "TOP"
}
// Center Popup
self.view.IAM_center(height: 400) { popupView in
popupView.addSubview(self.label)
self.label.text = "Center"
}
// Bottom Popup
self.view.IAM_bottom(height: 300) { popupView in
popupView.addSubview(self.label)
self.label.text = "Bottom"
}
- iOS 13.0
- Swift 5
IAMPopup is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'IAMPopup'
To install it, your Project settings > Swift Packages and add the repository by providing the GitHub URL.
Alternatively, File > Swift Packages > Add Package Dependencies.
https://github.com/camosss/IAMPopup
- Hosung Kang
- Email: camosss777@gmail.com
IAMPopup is available under the MIT license. See the LICENSE file for more info.