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
+43Lines changed: 43 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,49 @@ Documentation is automatically generated from source code comments and rendered
13
13
Usage
14
14
----------
15
15
16
+
To use `YSideMenu` in your app, you need to create an instance of `SideMenuController`, passing a child view controller as a parameter. Here is an example of how to create and present a side menu:
17
+
```swift
18
+
importYSideMenu
19
+
20
+
let sideMenuController =SideMenuController(rootViewController: contentViewController)
You can customize the appearance of the side menu by setting the `appearance` property of the `SideMenuController`. The `Appearance` struct contains the following properties:
51
+
52
+
`dimmerColor`: the color of the dimmer view that is displayed behind the side menu (default is black with an alpha of 0.3).
53
+
`idealWidthPercentage`: the ideal width of the side menu as a percentage of the width of the screen (default is 0.75).
54
+
`maximumWidth`: the maximum width of the side menu in points (default is 300).
55
+
`isDismissAllowed`: a Boolean value that indicates whether the user can dismiss the side menu by tapping outside of it or by swiping it to the left (default is true).
0 commit comments