I've got some swift code that looks like this:
class GeoRssItem
{
var title = ""
var description = ""
}
In another class I declare a variable of this as:
var currentGeoRssItem : GeoRssItem? // The current item that we're processing
I allocate this member variable as:
self.currentGeoRssItem = GeoRssItem();
then when I try to assign a property on the self.currentGeoRssItem Xcode auto completes to this:
self.currentGeoRssItem.?.description = "test"
Which then fails with a build error as so:
"Expected member name following '.'"
How do I set this property? I've read the docs but they aren't very helpful.