<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tokizuoh</author_name>
  <author_url>https://blog.hatena.ne.jp/tokizuoh/</author_url>
  <blog_title>カルボナーラ街道</blog_title>
  <blog_url>https://tokizuoh.hatenablog.com/</blog_url>
  <categories>
    <anon>SwiftUI未使用API100本ノック</anon>
    <anon>SwiftUI</anon>
  </categories>
  <description>API developer.apple.com iOS 13+。environmentの値を変更できる。 スクリーンショット false true コード gist.github.com メモ 途中で値を変える伝搬系は以下を使ったことがあるが、environmentは使ったことがなかった。 developer.apple.com 最近メドピアさんが出していたブログでも登場している。 tech.medpeer.co.jp 今回のAPIを使わずに同等のことをやるなら以下。ColorSchemeはlight/darkの二値しかないので三項演算子でシュッと書けるが、より複雑なものを条件付きで更新したい…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftokizuoh.hatenablog.com%2Fentry%2F2025%2F06%2F01%2F083431&quot; title=&quot;SwiftUI未使用API100本ノック: 64. transformEnvironment(_:transform:) - カルボナーラ街道&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/t/tokizuoh/20250601/20250601082447.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-06-01 08:34:31</published>
  <title>SwiftUI未使用API100本ノック: 64. transformEnvironment(_:transform:)</title>
  <type>rich</type>
  <url>https://tokizuoh.hatenablog.com/entry/2025/06/01/083431</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
