Skip to content

Commit c15d236

Browse files
committed
Release v1.2.0
1 parent eaf0ebe commit c15d236

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

FloatingPanel.podspec

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
Pod::Spec.new do |s|
22

33
s.name = "FloatingPanel"
4-
s.version = "1.1.0"
5-
s.summary = "FloatingPanel is a simple and easy-to-use UI component of a floating panel interface"
4+
s.version = "1.2.0"
5+
s.summary = "FloatingPanel is a clean and easy-to-use UI component of a floating panel interface."
66
s.description = <<-DESC
7-
FloatingPanel is a simple and easy-to-use UI component for a new interface introduced in Apple Maps, Shortcuts and Stocks app.
7+
FloatingPanel is a clean and easy-to-use UI component for a new interface introduced in Apple Maps, Shortcuts and Stocks app.
88
The new interface displays the related contents and utilities in parallel as a user wants.
99
DESC
1010
s.homepage = "https://github.com/SCENEE/FloatingPanel"

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ The new interface displays the related contents and utilities in parallel as a u
4646
- [x] Fluid animation and gesture handling
4747
- [x] Scroll view tracking
4848
- [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)
5050
- [x] Layout customization for all trait environments(i.e. Landscape orientation support)
5151
- [x] Behavior customization
5252
- [x] Free from common issues of Auto Layout and gesture handling
@@ -99,7 +99,7 @@ class ViewController: UIViewController, FloatingPanelControllerDelegate {
9999

100100
// Set a content view controller.
101101
let contentVC = ContentViewController()
102-
fpc.show(contentVC, sender: nil)
102+
fpc.set(contentViewController: contentVC)
103103

104104
// Track a scroll view(or the siblings) in the content view controller.
105105
fpc.track(scrollView: contentVC.tableView)
@@ -223,7 +223,7 @@ class ViewController: UIViewController, FloatingPanelControllerDelegate {
223223
self.searchPanelVC = FloatingPanelController()
224224

225225
let searchVC = SearchViewController()
226-
self.searchPanelVC.show(searchVC, sender: nil)
226+
self.searchPanelVC.set(contentViewController: searchVC)
227227
self.searchPanelVC.track(scrollView: contentVC.tableView)
228228

229229
self.searchPanelVC.addPanel(toParent: self)
@@ -232,7 +232,7 @@ class ViewController: UIViewController, FloatingPanelControllerDelegate {
232232
self.detailPanelVC = FloatingPanelController()
233233

234234
let contentVC = ContentViewController()
235-
self.detailPanelVC.show(contentVC, sender: nil)
235+
self.detailPanelVC.set(contentViewController: contentVC)
236236
self.detailPanelVC.track(scrollView: contentVC.scrollView)
237237

238238
self.detailPanelVC.addPanel(toParent: self)

0 commit comments

Comments
 (0)