@@ -46,7 +46,7 @@ The new interface displays the related contents and utilities in parallel as a u
46
46
- [x] Fluid animation and gesture handling
47
47
- [x] Scroll view tracking
48
48
- [x] Common UI elements: Grabber handle, Backdrop and Surface rounding corners
49
- - [x] 2 or 3 anchor positions(full, half, tip)
49
+ - [x] 1 ~ 3 anchor positions(full, half, tip)
50
50
- [x] Layout customization for all trait environments(i.e. Landscape orientation support)
51
51
- [x] Behavior customization
52
52
- [x] Free from common issues of Auto Layout and gesture handling
@@ -99,7 +99,7 @@ class ViewController: UIViewController, FloatingPanelControllerDelegate {
99
99
100
100
// Set a content view controller.
101
101
let contentVC = ContentViewController ()
102
- fpc.show (contentVC, sender : nil )
102
+ fpc.set ( contentViewController : contentVC )
103
103
104
104
// Track a scroll view(or the siblings) in the content view controller.
105
105
fpc.track (scrollView : contentVC.tableView )
@@ -223,7 +223,7 @@ class ViewController: UIViewController, FloatingPanelControllerDelegate {
223
223
self .searchPanelVC = FloatingPanelController ()
224
224
225
225
let searchVC = SearchViewController ()
226
- self .searchPanelVC .show (searchVC, sender : nil )
226
+ self .searchPanelVC .set ( contentViewController : searchVC )
227
227
self .searchPanelVC .track (scrollView : contentVC.tableView )
228
228
229
229
self .searchPanelVC .addPanel (toParent : self )
@@ -232,7 +232,7 @@ class ViewController: UIViewController, FloatingPanelControllerDelegate {
232
232
self .detailPanelVC = FloatingPanelController ()
233
233
234
234
let contentVC = ContentViewController ()
235
- self .detailPanelVC .show (contentVC, sender : nil )
235
+ self .detailPanelVC .set ( contentViewController : contentVC )
236
236
self .detailPanelVC .track (scrollView : contentVC.scrollView )
237
237
238
238
self .detailPanelVC .addPanel (toParent : self )
0 commit comments