<?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</anon>
  </categories>
  <description>開発環境 &gt; xcodebuild -version Xcode 14.0 Build version 14A5228q Xcodeはbetaだが本記事の内容はiOS16未満のAPIを使用。 モチベーション マスク処理やってみたいけどパッと実装が思いつかなかったので書いてみる。 お題 https://youtu.be/j3INdAPAO0o?t=6 方針 LinearGradientでグラデーションを作って、mask(alignment:_:)としてTextを指定する。maskはiOS15.0からの登場ということで比較的新しいAPI。 コード import SwiftUI struct Con…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftokizuoh.hatenablog.com%2Fentry%2F2022%2F06%2F26%2F181832&quot; title=&quot;SwiftUIでTextのマスク処理 - カルボナーラ街道&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/20220626/20220626180207.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-06-26 18:18:32</published>
  <title>SwiftUIでTextのマスク処理</title>
  <type>rich</type>
  <url>https://tokizuoh.hatenablog.com/entry/2022/06/26/181832</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
