Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

import Contentful // Retain the client as a property on a type you define so that // the client's asynchronous network callbacks are executed. let client = Client(spaceId: "<space_id>", environmentId: "<environment_id>", // Defaults to "master" if omitted accessToken: "<access_token>") // Snippets for the images API assume that you already have an Asset in memory. var asset: Asset = ... // Type passed into callback will be a UIImage or NSImage depending on the current platform. client.fetchImage(for: asset, with: [ImageOption.formatAs(.png(bits: .standard))]) { (image: Result<UIImage>) in switch result { case .success(let image): // Use the image. case .error(let error): print(error) } } #389

Open
Cuongcj opened this issue Jul 8, 2023 · 0 comments

Comments

@Cuongcj
Copy link

Cuongcj commented Jul 8, 2023

No description provided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant