<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yunagi_n</author_name>
  <author_url>https://blog.hatena.ne.jp/yunagi_n/</author_url>
  <blog_title>なつねこメモ</blog_title>
  <blog_url>https://tech.natsuneko.blog/</blog_url>
  <categories>
    <anon>Swift</anon>
  </categories>
  <description>最近 Swift (iOS アプリ開発) を触っているわたしです。 タイトル通り、複数の要素を受け付ける View、つまりは ZStack とかのように、次のようなコードがかける View 要素を作りたい場合のやり方： ZStack { Color(&quot;BrandColor&quot;) Image(&quot;BrandIcon&quot;) .resizable() .aspectRatio(contentMode: .fit) .padding() } 作り方は簡単！引数に @ViewBuilder 属性を付けるだけ！ import SwiftUI struct Tab&lt;Content: View&gt;: View { l…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.natsuneko.blog%2Fentry%2F2025%2F05%2F15%2F221644&quot; title=&quot;SwiftUI で複数の要素を子要素として受け付ける View を作りたい - なつねこメモ&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>2025-05-15 22:16:44</published>
  <title>SwiftUI で複数の要素を子要素として受け付ける View を作りたい</title>
  <type>rich</type>
  <url>https://tech.natsuneko.blog/entry/2025/05/15/221644</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
