diff --git a/Makefile b/Makefile index 2e1f6b0b..01d232f8 100644 --- a/Makefile +++ b/Makefile @@ -74,7 +74,8 @@ docs: xcodebuild docbuild \ -scheme "$(target)" \ -destination "$(destination)" \ - -derivedDataPath "$(DERIVED_DATA_PATH)" + -derivedDataPath "$(DERIVED_DATA_PATH)" \ + OTHER_DOCC_FLAGS="--warnings-as-errors" @find "$(DERIVED_DATA_PATH)" \ -type d \ -name "$(target).doccarchive" \ diff --git a/Sources/Layout/UIKit/UIView+Layout.swift b/Sources/Layout/UIKit/UIView+Layout.swift index 6741255b..cb20a369 100644 --- a/Sources/Layout/UIKit/UIView+Layout.swift +++ b/Sources/Layout/UIKit/UIView+Layout.swift @@ -20,7 +20,8 @@ extension UIView { /// distinct states. /// /// - Note: Use ``layout(metrics:_:)`` to create a layout with one item and use ``layout(metrics:items:)`` for - /// multiple items. Call ``Layout/addItems(_:)-59mxv`` to add more items to the layout. + /// multiple items. Use ``Layout/addItem(_:)`` or ``Layout/addItems(items:)`` to add additional items to + /// the layout. /// /// - Important: The ``Layout/activate()`` method must be called to activate the constraints of the layout. /// Calling ``Layout/deactivate()`` does not hide or remove subviews. @@ -51,7 +52,7 @@ extension UIView { /// ``` /// /// - Note: Use this method to create a layout with one item and use ``layout(metrics:items:)`` for multiple items. - /// Call ``Layout/addItems(_:)-59mxv`` to add more items to the layout. + /// Use ``Layout/addItem(_:)`` or ``Layout/addItems(items:)`` to add additional items to the layout. /// /// - Important: The ``Layout/activate()`` method must be called to activate the constraints of the layout. /// Calling ``Layout/deactivate()`` does not hide or remove subviews. @@ -93,7 +94,7 @@ extension UIView { /// ``` /// /// - Note: Use this method to create a layout with multiple items and use ``layout(metrics:_:)`` for a single item. - /// Call ``Layout/addItems(_:)-59mxv`` to add more items to the layout. + /// Use ``Layout/addItem(_:)`` or ``Layout/addItems(items:)`` to add additional items to the layout. /// /// - Important: The ``Layout/activate()`` method must be called to activate the constraints of the layout. /// Calling ``Layout/deactivate()`` does not hide or remove subviews.