<?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>Xcode</anon>
    <anon>備忘録</anon>
  </categories>
  <description>didSetの挙動 Swiftでは、Propertyに対してdidSetで処理を書いてあげることが多く、この時呼ばれるの？呼ばれないの？と疑問に思うことがしばしばあって、テストしていたのでまとめておく。 値型と参照型で異なる点は言わずもがな気をつけなければいけない。 呼ばれない init()内で代入した時 配列(NSArray型)で、addingを呼んだ時 呼ばれる 値を入れた時 nilを入れた時 配列(Array型)でappend、removeを呼んだ時</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Faryzae.hatenablog.com%2Fentry%2F2018%2F03%2F20%2F000633&quot; title=&quot;didSetの挙動 - 面白きことは良きことなり&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>2018-03-20 00:06:33</published>
  <title>didSetの挙動</title>
  <type>rich</type>
  <url>https://aryzae.hatenablog.com/entry/2018/03/20/000633</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
