You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@available(*, deprecated, message: "This API is deprecated and uses outdated terminologies. Please use `{{ method.replaceWith | capitalizeFirst }}` instead.")
@available(*, deprecated, message: "This API is deprecated and uses outdated terminologies. Please use `{{ method.replaceWith | capitalizeFirst }}` instead.")
Copy file name to clipboardExpand all lines: templates/swift/Sources/Services/Service.swift.twig
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,9 @@ open class {{ service.name | caseUcfirst | overrideIdentifier }}: Service {
20
20
/// @throws Exception
21
21
/// @return array
22
22
///
23
+
{%~ ifmethod.deprecated %}
24
+
@available(*, deprecated, message: "This API is deprecated and uses outdated terminologies. Please use `{{ method.replaceWith | capitalizeFirst }}` instead.")
@@ -81,6 +84,9 @@ open class {{ service.name | caseUcfirst | overrideIdentifier }}: Service {
81
84
/// @throws Exception
82
85
/// @return array
83
86
///
87
+
{%~ ifmethod.deprecated %}
88
+
@available(*, deprecated, message: "This API is deprecated and uses outdated terminologies. Please use `{{ method.replaceWith | capitalizeFirst }}` instead.")
0 commit comments