File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change 44//
55
66import UIKit
7+ import FloatingPanel
78
89@UIApplicationMain
910class AppDelegate : UIResponder , UIApplicationDelegate {
1011 var window : UIWindow ?
12+
13+ func application( _ application: UIApplication , didFinishLaunchingWithOptions launchOptions: [ UIApplication . LaunchOptionsKey : Any ] ? = nil ) -> Bool {
14+ FloatingPanelSurfaceView . appearance ( ) . shadowHidden = false
15+ FloatingPanelSurfaceView . appearance ( ) . cornerRadius = 6.0
16+ // FloatingPanelSurfaceView.appearance().backgroundColor = .lightGray
17+ // FloatingPanelBackdropView.appearance().backgroundColor = .red
18+ // GrabberHandleView.appearance().barColor = .red
19+ return true
20+ }
1121}
Original file line number Diff line number Diff line change @@ -123,10 +123,6 @@ class SampleListViewController: UIViewController {
123123 mainPanelVC = FloatingPanelController ( )
124124 mainPanelVC. delegate = self
125125
126- // Initialize FloatingPanelController and add the view
127- mainPanelVC. surfaceView. cornerRadius = 6.0
128- mainPanelVC. surfaceView. shadowHidden = false
129-
130126 // Set a content view controller
131127 mainPanelVC. set ( contentViewController: contentVC)
132128
You can’t perform that action at this time.
0 commit comments