Skip to content

Commit

Permalink
add Livephoto
Browse files Browse the repository at this point in the history
Signed-off-by: Marino Faggiana <[email protected]>
  • Loading branch information
marinofaggiana committed Nov 9, 2023
1 parent f74c3bf commit 55b2932
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Sources/NextcloudKit/NextcloudKit+Livephoto.swift
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,16 @@ extension NextcloudKit {
}
}
}

@available(iOS 13.0, *)
public func setLivephoto(serverUrlfileNamePath: String,
livePhotoFile: String,
options: NKRequestOptions = NKRequestOptions()) async -> (account: String, error: NKError) {

await withUnsafeContinuation({ continuation in
setLivephoto(serverUrlfileNamePath: serverUrlfileNamePath, livePhotoFile: livePhotoFile, options: options) { account, error in
continuation.resume(returning: (account: account, error: error))
}
})
}
}

0 comments on commit 55b2932

Please sign in to comment.