Change embeded TableViewController's data from parent ViewController
<p>I'm attempting to let the user press one of the names at the top. When they have done so, the child TableViewController will change a boolean <code>currentUserIsLoggedInUser</code>.</p>

<p><a href="https://i.stack.imgur.com/QQOuM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QQOuM.png" alt="storyboard"></a></p>

<p>In my <code>FactsController</code> I have the code:</p>

<pre><code>class FactsController: UIViewController {

    @IBOutlet weak var currentUserName: UIButton!
    @IBOutlet weak var friendUserName: UIButton!

    var currentPersonSelectedIsCurrentUser: Bool = false

    override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
        if (segue.identifier == "ChangePersonSegue") {

            let embed: FactsTableViewController = segue.destinationViewController as! FactsTableViewController
            embed.currentPersonSelectedIsCurrentUser = self.currentPersonSelectedIsCurrentUser
            embed.refresh //this doesn't call the function like id want it to
        }
    }

    func changeFactList() {
        //segue for table view controller for ___
        // call prepareForSegue
        performSegueWithIdentifier("ChangePersonSegue", sender: self)
    }

    override func viewDidLoad() {
        //changethings(user)
    }

    @IBAction func tappedUserName (sender: UIButton) {
        if currentPersonSelectedIsCurrentUser {

        }
        else {
            currentPersonSelectedIsCurrentUser = true
            changeFactList()
            currentUserName.titleLabel?.textColor = UIColor.lightGrayColor()
            friendUserName.titleLabel?.textColor = UIColor.darkGrayColor()
        }
    }

    @IBAction func tappedFriendName (sender: UIButton) {
        if currentPersonSelectedIsCurrentUser {
            currentPersonSelectedIsCurrentUser = false
            changeFactList()
            // change text color
            currentUserName.titleLabel?.textColor = UIColor.darkGrayColor()
            friendUserName.titleLabel?.textColor = UIColor.lightGrayColor()
        }
        else {

        }
    }
}
</code></pre>

<p>Then in my <code>FactsTableViewController</code> I have the code: </p>

<pre><code>class FactsTableViewController: UITableViewController {

    let cellID = "factCell"

    var currentUserIsLoggedInUser: Bool = false

    //var currentUserName: String = ""
    var facts = [Fact]()
    var currentUser: User!
    var soUser: User!

    let ref: FIRDatabaseReference = FIRDatabase.database().reference()

    override func viewDidLoad() {
        if currentUserIsLoggedInUser {
            // make tableview for the current user
        }
        else {
            // make tableview for the friend         
        }
    }

    func refresh() {
        self.tableView.reloadData()
    }

}
</code></pre>

<p>If there's a way to just send from the <code>FactsController</code> a boolean when a button is pressed, that would make everything much easier.  </p>