To run the example project, clone the repo, and run pod install
from the Example directory first.
ANPopUpContainer is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'ANPopUpContainer'
let storyBoard = UIStoryboard(name: "Main", bundle: nil)
let popUpContainer = storyBoard.instantiateViewController(withIdentifier: "PopUPStoryId") as! ANPopUpContainerViewController
popUpContainer.parentView = self
let firstView = storyBoard.instantiateViewController(withIdentifier: "FirstPopupStoryBoardId") as! FirstPopupViewController
firstView.view.frame = CGRect(x: 0, y: 0, width: UIScreen.main.bounds.width, height: 220)
firstView.inPopUpContainer = popUpContainer
popUpContainer.displayContentController(for: firstView)
self.present(popUpContainer, animated: true, completion: nil)
let storyBoard = UIStoryboard(name: "Main", bundle: nil)
let popUpContainer = storyBoard.instantiateViewController(withIdentifier: "PopUPStoryId") as! ANPopUpContainerViewController
popUpContainer.parentView = self
let firstView = storyBoard.instantiateViewController(withIdentifier: "FirstPopupStoryBoardId") as! FirstPopupViewController
firstView.view.frame = CGRect(x: 0, y: 0, width: UIScreen.main.bounds.width, height: 220)
firstView.inPopUpContainer = popUpContainer
popUpContainer.displayContentControllerWithFadeAnimation(for: firstView)
self.present(popUpContainer, animated: true, completion: nil)
abdallahnh, [email protected]
ANPopUpContainer is available under the MIT license. See the LICENSE file for more info.