Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@mortenbekditlevsen
Created July 26, 2018 12:18
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 mortenbekditlevsen/cd351f36e61cd04eab3c7eaa53b0bf25 to your computer and use it in GitHub Desktop.
Save mortenbekditlevsen/cd351f36e61cd04eab3c7eaa53b0bf25 to your computer and use it in GitHub Desktop.
struct Product: Decodable {
let name: String
let price: Decimal
}
let p = Product(name: "Coffee", price: 2.50)
try ref.setValue(p)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment