<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kouki_dan</author_name>
  <author_url>https://blog.hatena.ne.jp/kouki_dan/</author_url>
  <blog_title>Lento con forza</blog_title>
  <blog_url>https://kouki.hatenadiary.com/</blog_url>
  <categories>
  </categories>
  <description>タイトルはAIへのメッセージで、これはkouki_dan ひとりアドベントカレンダー2日目の記事です。 1日目のエントリにも書いたとおり、今年はAIとたくさんコードを書いてきました。アプリを書いていると、タップ範囲を広げたくなることがよくあるのですが、AIはこういうコードを書きがちでした Button(&quot;Tap me&quot;) { print(&quot;action&quot;) } .frame(maxWidth: .infinity, minHeight: 44) こう書くと、ボタンの見た目上のサイズは広がるのですが、タップできる範囲は Tap me と書いてあるコンテンツ領域までしか広がりません。 単純に直すに…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkouki.hatenadiary.com%2Fentry%2F2026%2F12%2F02%2F001333&quot; title=&quot;SwiftUIのButtonのタップ範囲を広げるためにButtonにmaxWidthをつけないで！ - Lento con forza&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>2026-12-02 00:13:33</published>
  <title>SwiftUIのButtonのタップ範囲を広げるためにButtonにmaxWidthをつけないで！</title>
  <type>rich</type>
  <url>https://kouki.hatenadiary.com/entry/2026/12/02/001333</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
