8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When trying to access a nested object my app crashes
let baseURL = Environment.backendURL.appendingPathComponent("api") let dataSource = DataSource<ProductOfferResource>(strategy: .path(ProductOfferResource.resourceType), client: self.client) try! dataSource.fetch() .result({ (document: Document<[ProductOfferResource]>) in let productOffers = document.data observer.onNext(productOffers ?? []) // Causes crash let background = productOffers?[0].design?.background_image?.meta observer.onCompleted() }, { (error) in observer.onError(error ?? NetworkServiceError.unknown) })
All objects can be found https://gist.github.com/sadiq81/bf0e77a8561049ecd0a105479fc3ff5a
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
No branches or pull requests
When trying to access a nested object my app crashes
All objects can be found https://gist.github.com/sadiq81/bf0e77a8561049ecd0a105479fc3ff5a
The text was updated successfully, but these errors were encountered: