I have a search tags view for my app. It allows users to add search tags to make searching easier. The search tag view is all done. But I'm having problems accessing the text from the tags and compiling them together to make one large string. Can someone help me. Here is the code. I took the repo project rrtagcontroller from github and customized it. All i want to do is take the text from all the tags and put them in one big string so that I can pass the data to the next view controller.
override func viewDidAppear(_ animated: Bool) {
let tag = ["Macbookpro13inch"]
RRTagController.displayTagControllerAsAChild(self, frame: CGRect(x: 0.0, y: 161.0, width: UIScreen.main.bounds.size.width, height: UIScreen.main.bounds.size.height - 161), tagsString: tag, blockFinish: { (selectedTags, unSelectedTags) -> () in
}) { () -> () in
}
}
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
let vc = segue.destination
vc.transitioningDelegate = transition
vc.modalPresentationStyle = .custom
if (segue.identifier == "ToHomeRoomDetailsViewController"){
var destinationVC:HomeRoomDetailsViewController = segue.destination as! HomeRoomDetailsViewController
destinationVC.HomeDescriptiontext = tagString
}
}