mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-21 17:12:45 +02:00
23 lines
545 B
Swift
23 lines
545 B
Swift
/*
|
|
Copyright 2019-2024 New Vector Ltd.
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
Please see LICENSE in the repository root for full details.
|
|
*/
|
|
|
|
import UIKit
|
|
|
|
/// AutosizedCollectionView is a convenient UICollectionView that makes dynamic sizing easier when using Auto Layout
|
|
class AutosizedCollectionView: UICollectionView {
|
|
|
|
override var contentSize: CGSize {
|
|
didSet {
|
|
self.invalidateIntrinsicContentSize()
|
|
}
|
|
}
|
|
|
|
override var intrinsicContentSize: CGSize {
|
|
return self.contentSize
|
|
}
|
|
}
|