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

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

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