<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>chakoku</author_name>
  <author_url>https://blog.hatena.ne.jp/chakoku/</author_url>
  <blog_title>chakokuのブログ(rev4)</blog_title>
  <blog_url>https://chakoku.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>SwiftUIを使って、Echonet Lite 機器をスキャンして、見つけ次第、リストに追加する実装を試みている。 以下が作成中のアプリの画面。scanの行の下に、検知デバイスをList形式で出したい。 が、、Stringを要素にもつArrayに対してForEachを使ってText()で追加しようとすると、ArrayはIdentifiableでないからダメと怒られる。ForEachで回す対象のデータ型はIDでアクセスできないとダメらしい(Identifiableプロトコルに準拠している必要があると理解)。Arrayもindexでアクセスしていると思うけど。。initを実行した時の要素数と、増…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchakoku.hatenablog.com%2Fentry%2F2020%2F12%2F06%2F192102&quot; title=&quot;SwiftUIでForEachを使ってarrayをループ処理したい。。怒られる - chakokuのブログ(rev4)&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/c/chakoku/20201206/20201206194043.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-12-06 19:21:02</published>
  <title>SwiftUIでForEachを使ってarrayをループ処理したい。。怒られる</title>
  <type>rich</type>
  <url>https://chakoku.hatenablog.com/entry/2020/12/06/192102</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
