<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nomunomu0504</author_name>
  <author_url>https://blog.hatena.ne.jp/nomunomu0504/</author_url>
  <blog_title>のむのむのconsole.log</blog_title>
  <blog_url>https://nomunomu0504.dev/</blog_url>
  <categories>
    <anon>Swift</anon>
  </categories>
  <description>前の記事でAndroidのContextについて書きましたが、今回はiPhoneのSwiftでのSingletonについてです。 昔だとSingletonを実装しようとすると class Singleton_Class: NSObject { class var sharedInstance: Singleton_Class { struct Static { static let instance: Singleton_Class = Singleton_Class() } return Static.instance } } みたいに、長くなってたんですが、最近だと class Singl…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnomunomu0504.dev%2Fentry%2F%253Fp%253D66&quot; title=&quot;SwiftでのSingletonについて - のむのむのconsole.log&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/n/nomunomu0504/20190403/20190403014311.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-09-01 23:48:01</published>
  <title>SwiftでのSingletonについて</title>
  <type>rich</type>
  <url>https://nomunomu0504.dev/entry/%3Fp%3D66</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
