Skip to content

Commit 9503c98

Browse files
committed
extend docs
1 parent fb96893 commit 9503c98

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

JDStatusBarNotification/Public/NotificationPresenter.swift

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -166,12 +166,6 @@ extension NotificationPresenter {
166166

167167
/// Present a notification using a custom subview.
168168
///
169-
/// The `customView` will be layouted correctly according to the selected style & the current device
170-
/// state (rotation, status bar visibility, etc.). The background will still be styled & layouted
171-
/// according to the provided style. If your custom view requires custom touch handling,
172-
/// make sure to set `style.canTapToHold` to `false`. Otherwise the `customView` won't
173-
/// receive any touches, as the internal `gestureRecognizer` would receive them.
174-
///
175169
/// - Parameters:
176170
/// - customView: A custom UIView to display as notification content.
177171
/// - sizingController: An optional controller conforming to ``NotificationPresenterCustomViewSizingController``, which controls the size of a presented custom view.
@@ -181,6 +175,12 @@ extension NotificationPresenter {
181175
///
182176
/// - Returns: The presented UIView for further customization
183177
///
178+
/// The `customView` will be layouted according to the selected style & the current device
179+
/// state (rotation, status bar visibility, etc.). The background will be styled & layouted
180+
/// according to the provided style. If your custom view requires custom touch handling,
181+
/// make sure to set `style.canTapToHold` to `false`. Otherwise the `customView` won't
182+
/// receive any touches, as the internal `gestureRecognizer` would receive them.
183+
///
184184
@discardableResult
185185
@objc(presentWithCustomView:sizingController:styleName:completion:)
186186
public func presentCustomView(_ customView: UIView,
@@ -202,6 +202,13 @@ extension NotificationPresenter {
202202
/// If no style can be found for the given `styleName` or it is `nil`, the default style will be used.
203203
/// - viewBuilder: A ViewBuilder closure to build your custom SwiftUI view.
204204
/// - completion: A ``Completion`` closure, which gets called once the presentation animation finishes.
205+
///
206+
/// The `View` created by the `viewBuilder` will be layouted according to the selected style & the current device
207+
/// state (rotation, status bar visibility, etc.). The background will be styled & layouted
208+
/// according to the provided style. If your custom view requires custom touch handling,
209+
/// make sure to set `style.canTapToHold` to `false`. Otherwise the `customView` won't
210+
/// receive any touches, as the internal `gestureRecognizer` would receive them.
211+
///
205212
@discardableResult
206213
public func presentSwiftView(styleName: String? = nil,
207214
@ViewBuilder viewBuilder: () -> some View,

0 commit comments

Comments
 (0)