From d2dce0b6f8008e650efac83d9aafa4b79db86eae Mon Sep 17 00:00:00 2001 From: Shin Yamamoto Date: Fri, 12 Apr 2019 12:41:45 +0900 Subject: [PATCH] Add a doc comment --- Framework/Sources/FloatingPanelSurfaceView.swift | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Framework/Sources/FloatingPanelSurfaceView.swift b/Framework/Sources/FloatingPanelSurfaceView.swift index c7e5319..0a9aed0 100644 --- a/Framework/Sources/FloatingPanelSurfaceView.swift +++ b/Framework/Sources/FloatingPanelSurfaceView.swift @@ -59,7 +59,14 @@ public class FloatingPanelSurfaceView: UIView { /// The color of the surface border. public var borderWidth: CGFloat = 0.0 { didSet { setNeedsLayout() } } + + /// The view presents an actual surface shape. + /// + /// It renders a background color, border line, and top rounded masking + /// a content view specified by other propertiea. The reason why they don't + /// apply to a content view directly is to avoid any side-effects. public var backgroundView: UIView! + private var backgroundHeightConstraint: NSLayoutConstraint! private struct Default {