<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>llcc</author_name>
  <author_url>https://blog.hatena.ne.jp/llcc/</author_url>
  <blog_title>しめ鯖日記</blog_title>
  <blog_url>https://llcc.hatenablog.com/</blog_url>
  <categories>
    <anon>iOS</anon>
  </categories>
  <description>Swift2.0で追加されたprotocol extensionsを試してみたのでそのメモです。 protocol extensionsとは プロトコルにメソッドを追加できる機能です。 下のようにextensionを使ってprotocolにメソッドを追加します。 protocol MyProtocol { func aaa() } extension MyProtocol { func bbb() { print(&quot;AAA&quot;) } } protocolとは Javaで言うInterfaceです。 下のようにメソッドの宣言をして利用します。 protocol MyProtocol { func …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fllcc.hatenablog.com%2Fentry%2F2015%2F06%2F12%2F234908&quot; title=&quot;Swift2.0で追加されたprotocol extensionsを試してみる - しめ鯖日記&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>2015-06-12 23:49:08</published>
  <title>Swift2.0で追加されたprotocol extensionsを試してみる</title>
  <type>rich</type>
  <url>https://llcc.hatenablog.com/entry/2015/06/12/234908</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
