<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mishimay</author_name>
  <author_url>https://blog.hatena.ne.jp/mishimay/</author_url>
  <blog_title>Yappli Tech Blog</blog_title>
  <blog_url>https://tech.yappli.io/</blog_url>
  <categories>
    <anon>Swift</anon>
    <anon>iOS</anon>
  </categories>
  <description>こんにちは、ヤプリの三縞です。 iOSアプリの開発を進める中で、クラスの外からそのクラスの親のプロパティへのアクセスを禁止したい状況がありました。 今回の記事では実際の事例を紹介しながら、どのように解決したのかを説明したいと思います。 実際にあった事例 APIと通信している間の読み込み中にアニメーションを表示する、UIViewを継承したLoadingViewというクラスを作成していました。 UIViewControllerのviewに addSubview() し、APIと通信する直前に startAnimating() メソッドを呼ぶという想定です。 このLoadingViewでアニメーショ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.yappli.io%2Fentry%2Fswift-property-access&quot; title=&quot; [Swift] 親クラスのプロパティへのアクセスを禁止したい - Yappli Tech Blog&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-03-28 15:04:09</published>
  <title> [Swift] 親クラスのプロパティへのアクセスを禁止したい</title>
  <type>rich</type>
  <url>https://tech.yappli.io/entry/swift-property-access</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
