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: CHANGELOG.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,7 @@
1
+
# 3.0.0
2
+
3
+
* Now it's possible to choose side where sibedar view controller appears from. Please the the PR #14 (https://github.com/alexkrzyzanowski/SidebarOverlay/pull/14). Thanks to [Eugene Mozharovsky](https://github.com/Mozharovsky).
Copy file name to clipboardExpand all lines: README.md
+7-6Lines changed: 7 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,9 +23,9 @@ It's quit simple to start developing with `SidebarOverlay`. First, we have to cr
23
23
24
24
* container view controller
25
25
* top view controller
26
-
*left view controller
26
+
*side view controller
27
27
28
-
The container view controller is the root view controller that makes all magic for us. It's necessary to subclass `SOContainerViewController` and assign it to our container view controller. Then we can setup top and left view controllers:
28
+
The container view controller is the root view controller that makes all magic for us. It's necessary to subclass `SOContainerViewController` and assign it to our container view controller. Then we can setup top and side view controllers:
29
29
30
30
```Swift
31
31
importSidebarOverlay
@@ -35,8 +35,9 @@ class ContainerViewController: SOContainerViewController {
@@ -46,14 +47,14 @@ Set the container view controller as initial on your storyboard and your basic a
46
47
47
48
### Open sidebar menu programatically
48
49
49
-
It's always good if user is able to open sidebar menu not only by swipe gesture, but also by tap on menu button. To open sidebar menu programatically, call `setMenuOpened(true)` method of container view controller:
50
+
It's always good if user is able to open sidebar menu not only by swipe gesture, but also by tap on menu button. To open sidebar menu programatically, set `isSideViewControllerPresented` property of container view controller to `true`:
@@ -62,7 +63,7 @@ class TopViewController: UIViewController {
62
63
63
64
As you see, we have property named `so_containerViewController`. This property is automatically added to all view controllers and you're able to access it everywhere.
64
65
65
-
To close the sidebar menu, just set the `isLeftViewControllerPresented` property to `false`.
66
+
To close the sidebar menu, just set the `isSideViewControllerPresented` property to `false`.
66
67
67
68
### Changing top view controller from the sidebar menu
Copy file name to clipboardExpand all lines: SidebarOverlay.podspec
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,14 @@
1
1
Pod::Spec.newdo |s|
2
2
s.name="SidebarOverlay"
3
-
s.version="2.1.4"
3
+
s.version="3.0.0"
4
4
s.summary="Yet another implementation of sidebar menu, but here your menu appears over the top view controller."
5
-
5
+
6
6
s.description="Yet another implementation of sidebar menu, but here your menu appears over the top view controller. You questions and pull requests are wolcome."
0 commit comments