<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>swiftlife</author_name>
  <author_url>https://blog.hatena.ne.jp/swiftlife/</author_url>
  <blog_title>swift life</blog_title>
  <blog_url>https://swiftlife.hatenablog.jp/</blog_url>
  <categories>
    <anon>swift</anon>
  </categories>
  <description>ある型(class/struct)のインスタンスを使って型メソッドを呼ぶには、type(of:)関数を使います。 class Foo { static var bar: Int { return 100 } } let foo = Foo() foo.bar // error: static member 'bar' cannot be used on instance of type 'Foo' type(of: foo).bar // 100 上のコンパイルエラーになっている箇所のようにfoo.barとは呼べないので注意。あと、Swift2で使えていたdynamicTypeプロパティはSw…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fswiftlife.hatenablog.jp%2Fentry%2F2017%2F02%2F14%2F221011&quot; title=&quot;Swift3でインスタンスから型メソッドを呼ぶ - swift life&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>2017-02-14 22:10:11</published>
  <title>Swift3でインスタンスから型メソッドを呼ぶ</title>
  <type>rich</type>
  <url>https://swiftlife.hatenablog.jp/entry/2017/02/14/221011</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
