Replaced deprecated @type with @property