Continue working on the GitFeed app from the previous video by implementing a way to retrieve saved data.
This is a companion discussion topic for the original entry at https://www.raywenderlich.com/4743-beginning-rxswift/lessons/27
Continue working on the GitFeed app from the previous video by implementing a way to retrieve saved data.
Why is the type of ‘lastModified’ a Variable<NSString?> ,
not a NSString?
I think the result is the same.
@scotteg Can you please help with this when you get a chance? Thank you - much appreciated! :]
Hi @papaya0033, yes, you could make lastModified
a mutable (var
) Optional<NSString>
, i.e., NSString?
. Aside from wanting to present these examples using Rx as much as possible/reasonable from a learning perspective, by implementing it as a Variable
, you are able to work with its underlying value similar to a regular type instance, but also have the option to subscribe to it down the road.