Skip to content

Commit 5108a44

Browse files
committed
Update sample
1 parent 60eb13c commit 5108a44

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

Examples/Samples/Sources/AppDelegate.swift

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,18 @@
44
//
55

66
import UIKit
7+
import FloatingPanel
78

89
@UIApplicationMain
910
class 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
}

Examples/Samples/Sources/ViewController.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)