diff --git a/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata b/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
new file mode 100644
index 0000000..919434a
--- /dev/null
+++ b/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
@@ -0,0 +1,7 @@
+
+
+
+
+
diff --git a/Package.swift b/Package.swift
index a4435dc..089fee2 100644
--- a/Package.swift
+++ b/Package.swift
@@ -1,34 +1,15 @@
-//
-// Package.swift
-// FSPagerView
-//
-// Created by Wenchao Ding on 22/02/2017.
-// Copyright © 2017 Wenchao Ding. All rights reserved.
-//
-// Permission is hereby granted, free of charge, to any person obtaining a copy
-// of this software and associated documentation files (the "Software"), to deal
-// in the Software without restriction, including without limitation the rights
-// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-// copies of the Software, and to permit persons to whom the Software is
-// furnished to do so, subject to the following conditions:
-//
-// The above copyright notice and this permission notice shall be included in
-// all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-// THE SOFTWARE.
-
-
// swift-tools-version:5.0
import PackageDescription
let package = Package(
name: "FSPagerView",
- dependencies : [],
- exclude: []
+ platforms: [
+ .iOS(.v9)
+ ],
+ products: [
+ .library(name: "FSPagerView", targets: ["FSPagerView"]),
+ ],
+ targets: [
+ .target(name: "FSPagerView", path: "Sources", exclude: ["FSPagerViewObjcCompat.h", "FSPagerViewObjcCompat.m"]),
+ ]
)
diff --git a/README.md b/README.md
index dfaac64..c3ff8ec 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@

-[](#)
+[](#)
[](http://cocoadocs.org/docsets/FSPagerView)
[](http://cocoadocs.org/docsets/FSPagerView)
[](https://github.com/Carthage/Carthage)
@@ -85,7 +85,7 @@ pagerView.interitemSpacing = 10
|  |
```swift
-pagerView.transformer = FSPagerViewTransformer(type: .crossfading)
+pagerView.transformer = FSPagerViewTransformer(type: .crossFading)
```
---
@@ -96,7 +96,7 @@ pagerView.transformer = FSPagerViewTransformer(type: .crossfading)
|  |
```swift
-pagerView.transformer = FSPagerViewTransformer(type: .zoomout)
+pagerView.transformer = FSPagerViewTransformer(type: .zoomOut)
```
---
@@ -417,4 +417,4 @@ func pagerViewDidEndDecelerating(_ pagerView: FSPagerView)
---
-# [Documentation](http://cocoadocs.org/docsets/FSPagerView)
\ No newline at end of file
+# [Documentation](http://cocoadocs.org/docsets/FSPagerView)
diff --git a/Sources/FSPageViewTransformer.swift b/Sources/FSPageViewTransformer.swift
index 2878679..7f46771 100644
--- a/Sources/FSPageViewTransformer.swift
+++ b/Sources/FSPageViewTransformer.swift
@@ -26,8 +26,8 @@ open class FSPagerViewTransformer: NSObject {
open internal(set) weak var pagerView: FSPagerView?
open internal(set) var type: FSPagerViewTransformerType
- open var minimumScale: CGFloat = 0.65
- open var minimumAlpha: CGFloat = 0.6
+ @objc open var minimumScale: CGFloat = 0.65
+ @objc open var minimumAlpha: CGFloat = 0.6
@objc
public init(type: FSPagerViewTransformerType) {
diff --git a/Sources/FSPagerView.swift b/Sources/FSPagerView.swift
index 7fb17d9..dd54eba 100644
--- a/Sources/FSPagerView.swift
+++ b/Sources/FSPagerView.swift
@@ -512,7 +512,7 @@ open class FSPagerView: UIView,UICollectionViewDataSource,UICollectionViewDelega
@objc(scrollToItemAtIndex:animated:)
open func scrollToItem(at index: Int, animated: Bool) {
guard index < self.numberOfItems else {
- fatalError("index \(index) is out of range [0...\(self.numberOfItems-1)]")
+ return
}
let indexPath = { () -> IndexPath in
if let indexPath = self.possibleTargetingIndexPath, indexPath.item == index {