<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hfoasi8fje3</author_name>
  <author_url>https://blog.hatena.ne.jp/hfoasi8fje3/</author_url>
  <blog_title>Swift・iOS</blog_title>
  <blog_url>https://hfoasi8fje3.hatenablog.com/</blog_url>
  <categories>
    <anon>Swift</anon>
  </categories>
  <description>■はじめに クラスプロパティの説明として、「インスタンスに依存しない値を扱う際に使う」、クラスメソッドの説明として「インスタンスに依存しない処理を扱う際に使う」とありますが、インスタンスメンバーとの使い分けがわかるようなわからないような・・・。分かっていないため調べました。 ■クラス設計の問題/可能な限りインスタンスメソッドで実現する Swiftでの記事があまり見つからなかったこともあり、Rubyでの使い分けに関する以下記事を参考にしました。 基本的にはインスタンスメソッドで実現することをまずは考えること、複雑な処理をクラスメソッドで記述して、コントローラで呼び出すなどがクラスメソッドの使いど…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhfoasi8fje3.hatenablog.com%2Fentry%2F2018%2F05%2F10%2F160605&quot; title=&quot;【Swift】クラスメンバーとインスタンスメンバーの使い分け - Swift・iOS&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-05-10 16:06:05</published>
  <title>【Swift】クラスメンバーとインスタンスメンバーの使い分け</title>
  <type>rich</type>
  <url>https://hfoasi8fje3.hatenablog.com/entry/2018/05/10/160605</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
