firebase runTransactionBlock
<p>I'm reading firebase.google's example seen here <a href="https://firebase.google.com/docs/database/ios/save-data#save_data_as_transactions" rel="noreferrer">https://firebase.google.com/docs/database/ios/save-data#save_data_as_transactions</a>
and I am trying to write my own version. I am having trouble as the firebase example leaves me more confused than i was before i started</p>

<p>All i am trying to do is when a person taps a button is that it ++ (or +=1) to the count
and another button removes it</p>

<p>Can somebody help me figure out how to do this...another user on a previous question posted links to other language answers and i tried to write it in the swift language but I failed miserably </p>