<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>aryzae</author_name>
  <author_url>https://blog.hatena.ne.jp/aryzae/</author_url>
  <blog_title>面白きことは良きことなり</blog_title>
  <blog_url>https://aryzae.hatenablog.com/</blog_url>
  <categories>
    <anon>Swift</anon>
    <anon>備忘録</anon>
  </categories>
  <description>前提 Swiftで独自クラスを作成してinitメソッドを書く時、 この独自クラスが持つプロパティの初期化をsuper.init()の後に行って エラー( Property 'self.property' not initialized at super.init call )に会う人は少なからずいると思う。 Objective-Cでは、これで問題なかったので、同じ様に書く人は自分以外にもいそう。 そしてエラー内容の言われるがまま、super.init()の前にプロパティの初期化を書いてエラーを回避するのだけれど、そもそもエラーになる理由をわかっていなかったので調べた。 結論 developer…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Faryzae.hatenablog.com%2Fentry%2F2017%2F03%2F06%2F024021&quot; title=&quot;Swiftでsuper.init()前にプロパティを初期化しなければいけない理由 - 面白きことは良きことなり&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/a/aryzae/20170306/20170306014641.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-03-06 02:40:21</published>
  <title>Swiftでsuper.init()前にプロパティを初期化しなければいけない理由</title>
  <type>rich</type>
  <url>https://aryzae.hatenablog.com/entry/2017/03/06/024021</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
