Skip to content

Instantly share code, notes, and snippets.

@zontan
Created July 6, 2020 23:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zontan/e0c0fc15d124c1bd56dd93f2f932c0ef to your computer and use it in GitHub Desktop.
Save zontan/e0c0fc15d124c1bd56dd93f2f932c0ef to your computer and use it in GitHub Desktop.
userRef.child(uid).child("locked").observe(.value) { (snapshot) in
if let lockState = snapshot.value as? String, lockState == "true" {
userCell.detailLabel.alpha = 1
} else {
userCell.detailLabel.alpha = 0
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment