<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>komaji504</author_name>
  <author_url>https://blog.hatena.ne.jp/komaji504/</author_url>
  <blog_title>ドン・エンジニーア</blog_title>
  <blog_url>https://komaji504.hateblo.jp/</blog_url>
  <categories>
    <anon>Swift</anon>
    <anon>UIKit</anon>
    <anon>iOS</anon>
  </categories>
  <description>問題 UICollectionViewDataSource を使っている場合では、 下記のように reloadData 直後には collectionView の contentSize が更新されている。 collectionView.reloadData() collectionView.layoutIfNeeded() // collectionView.contentSize が更新されている しかし DiffalbleDataSource を使っている場合には、 apply 直後では、collectionView の contentSize は更新されていない（レイアウトの組み方によ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkomaji504.hateblo.jp%2Fentry%2F2020%2F09%2F07%2F153506&quot; title=&quot;DiffableDataSource で apply 後の UICollectionView の contentSize を取得する - ドン・エンジニーア&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>2020-09-07 15:35:06</published>
  <title>DiffableDataSource で apply 後の UICollectionView の contentSize を取得する</title>
  <type>rich</type>
  <url>https://komaji504.hateblo.jp/entry/2020/09/07/153506</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
