     @IBOutlet var tableView: UITableView!
     @IBOutlet var addBtn: UIButton!
     @IBOutlet var tickBtn: UIButton!
+    
+    let tick: BehaviorRelay<Int> = BehaviorRelay(value: 0)
     
     var dogs: Results<Dog>!
     

                self?.tickBtnClicked()
            }).disposed(by: bag)
        
        
        //                    .subscribe(onNext: { [unowned self] _ in
        //                        try! realm.write {

    
    func tickBtnClicked(){
        print("tickBtnClicked")
        tick.accept(tick.value + 1)
    }
}

