<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>cockscomb</author_name>
  <author_url>https://blog.hatena.ne.jp/cockscomb/</author_url>
  <blog_title>cockscomblog?</blog_title>
  <blog_url>https://cockscomb.hatenablog.com/</blog_url>
  <categories>
    <anon>Swift</anon>
    <anon>SwiftUI</anon>
    <anon>Development</anon>
  </categories>
  <description>ここで言うSingletonというのは、ある種のグローバル変数を指している。そもそもクライアントアプリケーションの開発においては、実質的なグローバル変数が出現しやすい。環境にたった一つしか存在しない、存在すべきでない、というものが見出せる。例えばタイムゾーンがそれである。アプリケーション内のタイムゾーンはシステムに合わせるのが自然であり、アプリケーション中で複数存在することはほとんど起こり得ない。 iOSやmacOSでは、タイムゾーンを表すのはFoundation frameworkのTimeZoneである。システムのタイムゾーンはTimeZone.currentで取得できる。これはSingl…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcockscomb.hatenablog.com%2Fentry%2Fswiftui-environment-di&quot; title=&quot;SwiftUIではSingletonの代わりにEnvironmentを使うことができる - cockscomblog?&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://images-fe.ssl-images-amazon.com/images/I/416ZqsPCCjL._SL160_.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-01-27 09:17:42</published>
  <title>SwiftUIではSingletonの代わりにEnvironmentを使うことができる</title>
  <type>rich</type>
  <url>https://cockscomb.hatenablog.com/entry/swiftui-environment-di</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
