You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+18
Original file line number
Diff line number
Diff line change
@@ -35,6 +35,7 @@ The new interface displays the related contents and utilities in parallel as a u
35
35
-[Support your landscape layout](#support-your-landscape-layout)
36
36
-[Use the intrinsic size of a content in your panel layout](#use-the-intrinsic-size-of-a-content-in-your-panel-layout)
37
37
-[Specify an anchor for each state by an inset of the `FloatingPanelController.view` frame](#specify-an-anchor-for-each-state-by-an-inset-of-the-floatingpanelcontrollerview-frame)
38
+
-[Change the backdrop alpha](#change-the-backdrop-alpha)
38
39
-[Customize the behavior with `FloatingPanelBehavior` protocol](#customize-the-behavior-with-floatingpanelbehavior-protocol)
39
40
-[Modify your floating panel's interaction](#modify-your-floating-panels-interaction)
40
41
-[Activate the rubber-band effect on panel edges](#activate-the-rubber-band-effect-on-panel-edges)
@@ -370,6 +371,23 @@ class MyFullScreenLayout: FloatingPanelLayout {
370
371
371
372
:pencil2:`FloatingPanelFullScreenLayout` is deprecated on v1.
372
373
374
+
#### Change the backdrop alpha
375
+
376
+
You can change the backdrop alpha by `FloatingPanelLayout.backdropAlpha(for:)` for each state(`.full`, `.half` and `.tip`).
377
+
378
+
For instance, if a panel seems like the backdrop view isn't there on `.half` state, it's time to implement the backdropAlpha API and return a value for the state as below.
0 commit comments