Value of type 'NSObject' has no member 'data' -- custom objects
AFRUITPIE opened this issue · 1 comments
AFRUITPIE commented
snippets-ios/firestore/swift/firestore-smoketest/ViewController.swift
Lines 755 to 773 in 6057cc7
System information (OS, Device, etc): macOS 10.15.3, Xcode 11.3.1
What steps will reproduce the problem:
- Use the snippet in a Firestore project
What is the expected result?
The snippet will cast the Firestore document to the given type
What happens instead of that?
Error: "Value of type 'NSObject' has no member 'data'
AFRUITPIE commented
Apologies, this is not actually an issue. Found the solution here: https://stackoverflow.com/questions/59548819/firebase-cloud-firestore-how-to-convert-document-to-a-custom-object-in-swift
