diff --git a/stone/backends/swift_rsrc/SwiftClient.jinja b/stone/backends/swift_rsrc/SwiftClient.jinja index d85cc17e..29a7a389 100644 --- a/stone/backends/swift_rsrc/SwiftClient.jinja +++ b/stone/backends/swift_rsrc/SwiftClient.jinja @@ -6,7 +6,7 @@ import Foundation -public class {{ class_name }} { +public class {{ class_name }}: DropboxTransportClientOwning { public var client: {{ transport_client_name }} {% for var, type in namespace_fields %} @@ -14,7 +14,7 @@ public class {{ class_name }} { public var {{ var }}: {{ type }}Routes! {% endfor %} - public init(client: {{ transport_client_name }}) { + public required init(client: {{ transport_client_name }}) { self.client = client {% for var, type in namespace_fields %}