SWRevealViewController
SWRevealViewController copied to clipboard
Map not Showing and Push to Home
Hi, Now i try to implement your Class! i faced some issues! actually, HomeViewController is contain Map, when user tap redirects to HomeViewController via menu map not loading it showing only white screen!
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { var controller : UIViewController! tableView.deselectRow(at: indexPath, animated: true) switch indexPath.row { case 0: if HomeController == nil { HomeController = self.storyboard!.instantiateViewController(withIdentifier: "HomeVCID") as? UINavigationController } controller = HomeController break } revealViewController().pushFrontViewController(controller, animated:true) }
because i used this, if I didn't use this memory warning app will crash due to memory warning! and also from menu user redirect to another class from that class he needs to redirect HomeViewController and load map!
override func viewWillAppear(_ animated: Bool) { self.title = "Donate" self.show_alert(cancel: "Cancel", sucess: "Yes", image: #imageLiteral(resourceName: "splash"), titleName: "Give Blood, Save Life's", content: "Do you want to become an Donor?", is_OneButton: false) { (isCancel) in if !isCancel { }else{ if let HomeController = self.storyboard!.instantiateViewController(withIdentifier: "HomeVCID") as? UINavigationController { self.revealViewController().setFront(HomeController, animated: true) } } } }