Charles Jr
Charles Jr

Reputation: 9119

Saving Data To Firebase with Swift

I copied the examples from firebase.com but I'm getting an error: enter image description here

I can't get my code to recognize my text dictionary and save it.

Upvotes: 1

Views: 848

Answers (1)

Doug
Doug

Reputation: 834

So I believe you are referencing a modified version of the following version from the firebase ios docs:

Consider declaring the newText variable as AnyObject like so:

var newText: AnyObject = ["test1": gracehop]

Upvotes: 1

Related Questions