<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ShinichiroKato</author_name>
  <author_url>https://blog.hatena.ne.jp/ShinichiroKato/</author_url>
  <blog_title>Goodpatch Tech Blog</blog_title>
  <blog_url>https://goodpatch-tech.hatenablog.com/</blog_url>
  <categories>
    <anon>iOS</anon>
    <anon>SwiftUI</anon>
    <anon>Alfred</anon>
  </categories>
  <description>この記事は iOS Advent Calendar 2021 の23日目の記事です。 iOS エンジニアの 加藤 です。SwiftUI で Preview を扱う際の課題を解決したので、共有します。 課題感 したこと 結果 課題感 SwiftUI で Preview するとき、デバイス名を文字列で指定する必要がありますよね。 struct ContentView_Previews: PreviewProvider { static var previews: some View { ContentView() .previewDevice(PreviewDevice(rawValue: &quot;iP…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgoodpatch-tech.hatenablog.com%2Fentry%2F2021%2F12%2F23%2F181126&quot; title=&quot;SwiftUI の PreviewDevice 一覧を簡単に取得する Alfred Workflow   - Goodpatch Tech 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>https://cdn-ak.f.st-hatena.com/images/fotolife/S/ShinichiroKato/20211223/20211223174844.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-12-23 18:11:26</published>
  <title>SwiftUI の PreviewDevice 一覧を簡単に取得する Alfred Workflow  </title>
  <type>rich</type>
  <url>https://goodpatch-tech.hatenablog.com/entry/2021/12/23/181126</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
