Skip to content

Instantly share code, notes, and snippets.

@Mreyna3
Created May 26, 2019 21:40
Show Gist options
  • Save Mreyna3/d783523850f07954ad9823b56895e3ed to your computer and use it in GitHub Desktop.
Save Mreyna3/d783523850f07954ad9823b56895e3ed to your computer and use it in GitHub Desktop.
resetBatchSum function
func resetBatchSum(){
//1
batchSum = 0.0
//2
defaults.set(batchSum, forKey: "batch_sum")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment