<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>R-Hack</author_name>
  <author_url>https://blog.hatena.ne.jp/R-Hack/</author_url>
  <blog_title>R-Hack（楽天グループ株式会社）</blog_title>
  <blog_url>https://commerce-engineer.rakuten.careers/</blog_url>
  <categories>
    <anon>ラクマ</anon>
    <anon>テック</anon>
  </categories>
  <description>はじめまして。ラクマでモバイルエンジニアをやっているkurapyです。 iOSアプリを作るうえでよく利用されるUIButtonのimageViewは左、titleLabelは右に配置されるのが一般的です。 その配置を逆にしようとした時に少し苦戦したので、どう対応したのかをお話ししようと思います。 環境 Xcode 12.0.1 Swift 5.3 titleLabelとimageViewを左右逆に配置する imageViewを右、titleLabelを左に配置したい場合、UIButtonを左右反転することで配置することができます。 その際、imageViewやtitleLabelも反転してしま…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcommerce-engineer.rakuten.careers%2Fentry%2Ftech%2F0021&quot; title=&quot;UIButtonのtitleLabelとimageViewを左右逆に配置する - R-Hack（楽天グループ株式会社）&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/R/Rakuma/20201008/20201008160509.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-10-22 17:14:58</published>
  <title>UIButtonのtitleLabelとimageViewを左右逆に配置する</title>
  <type>rich</type>
  <url>https://commerce-engineer.rakuten.careers/entry/tech/0021</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
