<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>xyk</author_name>
  <author_url>https://blog.hatena.ne.jp/xyk/</author_url>
  <blog_title>xyk blog</blog_title>
  <blog_url>https://xyk.hatenablog.com/</blog_url>
  <categories>
    <anon>ios</anon>
    <anon>swift</anon>
  </categories>
  <description>検証環境: Xcode 13.4 Swift 5.6.1 Nuke 11.0.1 Swift の画像表示ライブラリである Nuke (https://github.com/kean/Nuke) で、画像取得に失敗した時のレスポンスステータスコードを知りたい状況があったのだが、Error 情報から取り出す方法がちょっと面倒だったのでメモしておく。 ImagePipeline.shared.loadImage(with: url) { result in if case .failure(let pipelineError) = result, case ImagePipeline.Error.d…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fxyk.hatenablog.com%2Fentry%2F2022%2F08%2F05%2F152920&quot; title=&quot;Swift 画像表示ライブラリ Nuke で画像取得失敗時のレスポンスステータスコードを知りたい - xyk blog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-08-05 15:29:20</published>
  <title>Swift 画像表示ライブラリ Nuke で画像取得失敗時のレスポンスステータスコードを知りたい</title>
  <type>rich</type>
  <url>https://xyk.hatenablog.com/entry/2022/08/05/152920</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
