IAMPopup
Introduction
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.
Basic Examples
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"
}
Requirements
- iOS 13.0
- Swift 5
Installation
CocoaPods
IAMPopup is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'IAMPopup'
Swift Package Manager
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
Author
- Hosung Kang
- Email: [email protected]
License
IAMPopup is available under the MIT license. See the LICENSE file for more info.