We have our library we ship to our customers, and I\'d like to mark some methods as \"deprecated\" because we changed them (like Apple does in the iPhone SDK).
I\'ve
Deprecate any method/class/struct/protocols using @available
@available(*, deprecated, message: "Parse your data by hand instead")
func parseData() { }
@available(*, deprecated, renamed: "loadData")
func fetchData() { }
@available(swift, obsoleted: 4.1, renamed: "attemptConnection")
func testConnection() { }
@available(swift, deprecated: 4.0, obsoleted: 5.0, message: "This will be removed in v5.0; please migrate to a different API.")
Possible params:
For more info see apple doc: Attributes