From 7d32cef11ca0cce42db339b26283799ab67e1471 Mon Sep 17 00:00:00 2001 From: Garric Nahapetian Date: Mon, 22 Jan 2024 15:55:45 -0800 Subject: [PATCH] Change view to private set (#302) --- Sources/Layout/Layout.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Layout/Layout.swift b/Sources/Layout/Layout.swift index e92531ec..fb7f609f 100644 --- a/Sources/Layout/Layout.swift +++ b/Sources/Layout/Layout.swift @@ -47,7 +47,7 @@ public final class Layout { // swiftlint:disable:this type_body_length // MARK: - Properties /// The parent view to which the layout will add subviews and superview constraints. - public weak var view: UIView? + public private(set) weak var view: UIView? /// The default metrics for the Visual Format Language APIs. public let metrics: [String: Any]