Skip to content

Commit 2763237

Browse files
committed
Update ContentConfigurationView.swift
1 parent d50c31b commit 2763237

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed
Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,14 @@
77

88
import UIKit
99

10+
/// A view that displays the content view of a `UIContentConfiguration`.
1011
class ContentConfigurationView: UIView {
12+
13+
/// The content view.
1114
var contentView: (UIView & UIContentView)
1215

13-
var contentConfiguration: UIContentConfiguration {
16+
/// The current content configuration.
17+
public var contentConfiguration: UIContentConfiguration {
1418
didSet {
1519
updateContentView()
1620
}
@@ -22,7 +26,8 @@ class ContentConfigurationView: UIView {
2226
addSubview(withConstraint: contentView)
2327
}
2428

25-
init(configuration: UIContentConfiguration) {
29+
/// Creates a view with the specified content configuration.
30+
public init(configuration: UIContentConfiguration) {
2631
self.contentConfiguration = configuration
2732
self.contentView = configuration.makeContentView()
2833
super.init(frame: .zero)

0 commit comments

Comments
 (0)