<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>pomupomupurinkun</author_name>
  <author_url>https://blog.hatena.ne.jp/pomupomupurinkun/</author_url>
  <blog_title>エキサイト TechBlog.</blog_title>
  <blog_url>https://tech.excite.co.jp/</blog_url>
  <categories>
  </categories>
  <description>エキサイト株式会社の奥田です。 本日はTabViewを作成する際にEnumに紐付いたStringを取得する場合があったため、その方法について記述します。 なぜEnumに紐付いたStringを定義する必要があったか？ 今回のケースではTabViewを作成する際にTabの名称をEnumに定義したTypeに紐付けたものにしたかったからです。 Enumの要素一つ、一つに対して紐づくものであり、取り回しがしやすいと感じて、今回のような実装にしました。 定義 それではまずEnum側の定義をしていきます。 enum SampleCategory { article, user, } extension Sa…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.excite.co.jp%2Fentry%2F2022%2F05%2F19%2F184923&quot; title=&quot;EnumをExtensionを使用し拡張することでStringを取得できるようにする方法 - エキサイト TechBlog.&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>2022-05-19 18:49:23</published>
  <title>EnumをExtensionを使用し拡張することでStringを取得できるようにする方法</title>
  <type>rich</type>
  <url>https://tech.excite.co.jp/entry/2022/05/19/184923</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
