I try to add filterview to Viewcontroller
. I try to decide how i do but I dont know what is the best way for this implementation. Now I open a xib
file(filterView) on the viewcontroller but also I have a tabbar and I dont align to bottom constraint to safearea because of tabbar.
Now I decide to open in new VC but I dont know how can I pass these filter datas. I think I have some method as "Observer" , "Core Data", "UserDefaults" or "Dynamic class" . Which is the best way for this question?
Can you help me for answering this question?
I dont use Segue also I dont want use Segue . I can pass data A to B but in reverse I have to apply an action in A. Also I dont want to use any function in viewDidAppear.
I open the B controller with present(vc , animated: true)
and I get back with dismiss(animated: true , completion: nil)
.
This is not duplicate of any question.
Thanks in advance