Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func setupModalTextCard() {
- selectCardViewController = SelectCardViewController(nibName:"SelectCardViewController", bundle:nil)
- // Remove selectCardViewController from editorVC
- selectCardViewController.removeFromParent()
- selectCardViewController.view.removeFromSuperview()
- textCardViewController = TextCardViewController(nibName: "TextCardViewController", bundle:nil)
- self.addChild(textCardViewController)
- textCardViewController.view.layer.cornerRadius = 9
- self.view.addSubview(textCardViewController.view)
- cardHandleOriginY = textCardViewController.handleArea.frame.origin.y
- textCardViewController.view.frame = CGRect(x: 0, y: self.view.frame.height - cardHandleOriginY - textCardHandleAreaHeight, width: self.view.bounds.width, height: textCardHeight)
- textCardViewController.view.clipsToBounds = true
- print(#function)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement