This is a companion discussion topic for the original entry at https://www.raywenderlich.com/1941154-fundamental-ios-design-patterns/lessons/11
This is a companion discussion topic for the original entry at https://www.raywenderlich.com/1941154-fundamental-ios-design-patterns/lessons/11
In 11 - Strategy, around the 6:00 mark, should
public var movieRatingClient = MovieRatingStrategy!
be
public var movieRatingClient: MovieRatingStrategy!
(use semi-colon instead of equals) instead? Thanks.
Yes I ran into the same error.
I think it should be: public var movieRatingClient: MovieRatingStrategy!
because you are asking for the type of the property movieRatingClient.
Yes, this is a typo in the video…!
I’ll make sure this is fixed in the next update. Thanks for pointing this out. :]