<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>muchan611</author_name>
  <author_url>https://blog.hatena.ne.jp/muchan611/</author_url>
  <blog_title>muchan memo</blog_title>
  <blog_url>https://muchan611.hatenablog.com/</blog_url>
  <categories>
    <anon>メモ</anon>
    <anon>Swift</anon>
  </categories>
  <description>背景の一部を表示させたまま、半透明のオーバーレイを表示させたい事があったので、その時の実装した内容のメモです📝 具体的には下記のgifのような挙動の実現方法です。 ボタンをタップすると、背景に表示された緑の四角が見えるようにくり抜かれたオーバーレイを表示して、オーバーレイのどこかをタップすると、それが消えるというもの。 コードはこちらに置いてます。 一部をくり抜いたオーバーレイは OverlayClippedViewController で実装していて、コードはこちら。 private lazy var backgroundLayer: CALayer = { let clippedViewW…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmuchan611.hatenablog.com%2Fentry%2F2019%2F10%2F01%2F003243&quot; title=&quot;一部をくり抜いたオーバーレイを表示する方法 - muchan memo&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/m/muchan611/20191001/20191001002450.gif</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-10-01 00:32:43</published>
  <title>一部をくり抜いたオーバーレイを表示する方法</title>
  <type>rich</type>
  <url>https://muchan611.hatenablog.com/entry/2019/10/01/003243</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
