Skip to content
This repository has been archived by the owner on Feb 13, 2019. It is now read-only.

Commit

Permalink
Merge pull request #1 from BasThomas/patch-1
Browse files Browse the repository at this point in the history
Fix code indentation in README
  • Loading branch information
louisdh authored Feb 21, 2017
2 parents 4976986 + 46b493c commit 67a8c9d
Showing 1 changed file with 21 additions and 25 deletions.
46 changes: 21 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,20 +48,17 @@ Example:

```swift
class MyPanelContentViewController: PanelContentViewController {
override func viewDidLoad() {
super.viewDidLoad()

self.title = "Panel title"


self.title = "Panel title"
}

override var preferredPanelContentSize: CGSize {
return CGSize(width: 320, height: 500)
}


override var preferredPanelContentSize: CGSize {
return CGSize(width: 320, height: 500)
}
}

```

A panel is explicitly (without your action) shown in a ```UINavigationController```, but the top bar can be hidden or styled as with any ```UINavigationController```.
Expand All @@ -71,21 +68,20 @@ A panel is explicitly (without your action) shown in a ```UINavigationController
```PanelManager``` is a protocol that in its most basic form expects the following:

```swift
// The view in which the panels may be dragged around
var panelContentWrapperView: UIView {
return contentWrapperView
}

// The content view, which will be moved/resized when panels pin
var panelContentView: UIView {
return contentView
}

// An array of PanelViewController objects
var panels: [PanelViewController] {
return []
}
// The view in which the panels may be dragged around
var panelContentWrapperView: UIView {
return contentWrapperView
}

// The content view, which will be moved/resized when panels pin
var panelContentView: UIView {
return contentView
}

// An array of PanelViewController objects
var panels: [PanelViewController] {
return []
}
```

Typically the ```PanelManager``` protocol is implemented on a ```UIViewController```.
Expand All @@ -108,4 +104,4 @@ pod 'PanelKit', '~> 0.8'

## License

This project is available under the MIT license. See the LICENSE file for more info.
This project is available under the MIT license. See the LICENSE file for more info.

0 comments on commit 67a8c9d

Please sign in to comment.