Skip to content

Commit

Permalink
Add more docs
Browse files Browse the repository at this point in the history
  • Loading branch information
kukushi committed Jan 27, 2019
1 parent 155af34 commit 3196d55
Show file tree
Hide file tree
Showing 43 changed files with 276 additions and 133 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Besides all the features a *Side Menu* should have, it supports:
- Rubber band effect while panning
- Custom transition animation
- RTL supports
- [API References](https://kukushi.github.io/SideMenu)

## Preview

Expand Down
14 changes: 14 additions & 0 deletions SideMenu/Delegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,21 @@ public protocol SideMenuControllerDelegate: class {

// MARK: Switching


/// Side menu will show a view controller.
///
/// - Parameters:
/// - sideMenuController: current side menu controller
/// - viewController: the view controller to show
/// - animated: whether it's animated
func sideMenuController(_ sideMenuController: SideMenuController, willShow viewController: UIViewController, animated: Bool)

/// Side menu did showed a view controller.
///
/// - Parameters:
/// - sideMenuController: current side menu controller
/// - viewController: the view controller shown
/// - animated: whether it's animated
func sideMenuController(_ sideMenuController: SideMenuController, didShow viewController: UIViewController, animated: Bool)

// MARK: Revealing
Expand Down
4 changes: 4 additions & 0 deletions SideMenu/Preferences.swift
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,11 @@ extension SideMenuController {
public var supportedOrientations: UIInterfaceOrientationMask = .portrait
}


/// The basic configuration of side menu
public var basic = Configuration()

/// The animation configuration of side menu
public var animation = Animation()
}
}
2 changes: 2 additions & 0 deletions SideMenu/Segue.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ open class SideMenuSegue: UIStoryboardSegue {
/// current content type
public var contentType = ContentType.content

/// Peforming the segue, will change the corresponding view controller of side menu to `destination` vew controller.
/// This method is called when loading from storyboard.
open override func perform() {
guard let sideMenuController = source as? SideMenuController else {
return
Expand Down
2 changes: 1 addition & 1 deletion SideMenu/UIViewController+SideMenu.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import UIKit
// Provides access to the side menu controller
public extension UIViewController {

/// Access the nearest ancestor view controller hierarchy that is a side menu controller.
/// Access the nearest ancestor view controller hierarchy that is a side menu controller.
public var sideMenuController: SideMenuController? {
return findSideMenuController(from: self)
}
Expand Down
4 changes: 2 additions & 2 deletions docs/Classes.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<a class="header-link" href="index.html">
SideMenu Docs
</a>
(51% documented)
(58% documented)
</p>

<p class="header-col--secondary">
Expand Down Expand Up @@ -216,7 +216,7 @@ <h4>Declaration</h4>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/kukushi/SideMenu/1.0.0/SideMenu/Segue.swift#L12-L39">Show on GitHub</a>
<a href="https://github.com/kukushi/SideMenu/1.0.0/SideMenu/Segue.swift#L12-L41">Show on GitHub</a>
</div>
</section>
</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/Classes/BasicTransitionAnimator.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<a class="header-link" href="../index.html">
SideMenu Docs
</a>
(51% documented)
(58% documented)
</p>

<p class="header-col--secondary">
Expand Down
4 changes: 2 additions & 2 deletions docs/Classes/SideMenuController.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<a class="header-link" href="../index.html">
SideMenu Docs
</a>
(51% documented)
(58% documented)
</p>

<p class="header-col--secondary">
Expand Down Expand Up @@ -1095,7 +1095,7 @@ <h4>Declaration</h4>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/kukushi/SideMenu/1.0.0/SideMenu/Preferences.swift#L13-L111">Show on GitHub</a>
<a href="https://github.com/kukushi/SideMenu/1.0.0/SideMenu/Preferences.swift#L13-L115">Show on GitHub</a>
</div>
</section>
</div>
Expand Down
10 changes: 5 additions & 5 deletions docs/Classes/SideMenuController/Preferences.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<a class="header-link" href="../../index.html">
SideMenu Docs
</a>
(51% documented)
(58% documented)
</p>

<p class="header-col--secondary">
Expand Down Expand Up @@ -301,7 +301,7 @@ <h4>Declaration</h4>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Undocumented</p>
<p>The basic configuration of side menu</p>

</div>
<div class="declaration">
Expand All @@ -313,7 +313,7 @@ <h4>Declaration</h4>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/kukushi/SideMenu/1.0.0/SideMenu/Preferences.swift#L">Show on GitHub</a>
<a href="https://github.com/kukushi/SideMenu/1.0.0/SideMenu/Preferences.swift#L111">Show on GitHub</a>
</div>
</section>
</div>
Expand All @@ -331,7 +331,7 @@ <h4>Declaration</h4>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Undocumented</p>
<p>The animation configuration of side menu</p>

</div>
<div class="declaration">
Expand All @@ -343,7 +343,7 @@ <h4>Declaration</h4>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/kukushi/SideMenu/1.0.0/SideMenu/Preferences.swift#L">Show on GitHub</a>
<a href="https://github.com/kukushi/SideMenu/1.0.0/SideMenu/Preferences.swift#L114">Show on GitHub</a>
</div>
</section>
</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/Classes/SideMenuController/Preferences/Animation.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<a class="header-link" href="../../../index.html">
SideMenu Docs
</a>
(51% documented)
(58% documented)
</p>

<p class="header-col--secondary">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<a class="header-link" href="../../../index.html">
SideMenu Docs
</a>
(51% documented)
(58% documented)
</p>

<p class="header-col--secondary">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<a class="header-link" href="../../../index.html">
SideMenu Docs
</a>
(51% documented)
(58% documented)
</p>

<p class="header-col--secondary">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<a class="header-link" href="../../../index.html">
SideMenu Docs
</a>
(51% documented)
(58% documented)
</p>

<p class="header-col--secondary">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<a class="header-link" href="../../../index.html">
SideMenu Docs
</a>
(51% documented)
(58% documented)
</p>

<p class="header-col--secondary">
Expand Down
7 changes: 4 additions & 3 deletions docs/Classes/SideMenuSegue.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<a class="header-link" href="../index.html">
SideMenu Docs
</a>
(51% documented)
(58% documented)
</p>

<p class="header-col--secondary">
Expand Down Expand Up @@ -193,7 +193,8 @@ <h4>Declaration</h4>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Undocumented</p>
<p>Peforming the segue, will change the corresponding view controller of side menu to <code>destination</code> vew controller.
This method is called when loading from storyboard.</p>

</div>
<div class="declaration">
Expand All @@ -205,7 +206,7 @@ <h4>Declaration</h4>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/kukushi/SideMenu/1.0.0/SideMenu/Segue.swift#L26-L37">Show on GitHub</a>
<a href="https://github.com/kukushi/SideMenu/1.0.0/SideMenu/Segue.swift#L28-L39">Show on GitHub</a>
</div>
</section>
</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/Classes/SideMenuSegue/ContentType.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<a class="header-link" href="../../index.html">
SideMenu Docs
</a>
(51% documented)
(58% documented)
</p>

<p class="header-col--secondary">
Expand Down
2 changes: 1 addition & 1 deletion docs/Extensions.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<a class="header-link" href="index.html">
SideMenu Docs
</a>
(51% documented)
(58% documented)
</p>

<p class="header-col--secondary">
Expand Down
4 changes: 2 additions & 2 deletions docs/Extensions/UIViewController.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<a class="header-link" href="../index.html">
SideMenu Docs
</a>
(51% documented)
(58% documented)
</p>

<p class="header-col--secondary">
Expand Down Expand Up @@ -126,7 +126,7 @@ <h1>UIViewController</h1>
<section class="section">
<div class="pointer"></div>
<div class="abstract">
<p>Access the nearest ancestor view controller hierarchy that is a side menu controller.</p>
<p>Access the nearest ancestor view controller hierarchy that is a side menu controller.</p>

</div>
<div class="declaration">
Expand Down
4 changes: 2 additions & 2 deletions docs/Protocols.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<a class="header-link" href="index.html">
SideMenu Docs
</a>
(51% documented)
(58% documented)
</p>

<p class="header-col--secondary">
Expand Down Expand Up @@ -134,7 +134,7 @@ <h4>Declaration</h4>
</div>
</div>
<div class="slightly-smaller">
<a href="https://github.com/kukushi/SideMenu/1.0.0/SideMenu/Delegate.swift#L13-L62">Show on GitHub</a>
<a href="https://github.com/kukushi/SideMenu/1.0.0/SideMenu/Delegate.swift#L13-L76">Show on GitHub</a>
</div>
</section>
</div>
Expand Down
Loading

0 comments on commit 3196d55

Please sign in to comment.