Skip to content
This repository has been archived by the owner on Jan 3, 2021. It is now read-only.

Commit

Permalink
Swift 4
Browse files Browse the repository at this point in the history
  • Loading branch information
EyreFree committed Oct 1, 2017
1 parent 774fb45 commit 76a8f58
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .swift-version
@@ -1 +1 @@
3.0
4.0
3 changes: 2 additions & 1 deletion .travis.yml
@@ -1,4 +1,5 @@
osx_image: xcode8.3

osx_image: xcode9.0
language: objective-c

cache: cocoapods
Expand Down
6 changes: 4 additions & 2 deletions README.md
Expand Up @@ -27,8 +27,10 @@ VSCAM 是一款图片分享应用,此处为使用 Swift 编写的 iOS 版本

## 开发环境

- XCode 8.1+
- Swift 3.0.1+
| Version | Needs |
|:--------|:-------------------------------------|
| 1.x | XCode 8.0+<br>Swift 3.0+<br>iOS 9.0+ |
| 4.x | XCode 9.0+<br>Swift 4.0+<br>iOS 9.0+ |

## 构建

Expand Down
2 changes: 1 addition & 1 deletion VSCAM/Function.swift
Expand Up @@ -134,7 +134,7 @@ class Function: NSObject {

controller.present(shareVC, animated: true) {
//分享完成回调
print("分享内容[\(title)][\(url)]")
print("分享内容[\(title ?? "")][\(url)]")
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion VSCAM/LoadingView.swift
Expand Up @@ -47,7 +47,7 @@ class MUGProgressIndicator: JGProgressHUDIndicatorView {
rotateView.layer.contents = UIImage(named: "fadai")?.cgImage

let rotationAnimation = CABasicAnimation(keyPath: "transform.rotation.z")
rotationAnimation.toValue = NSNumber(value: M_PI * 2.0)
rotationAnimation.toValue = NSNumber(value: Double.pi * 2.0)
//rotationAnimation.timingFunction = CAMediaTimingFunction(name: kCAMediaTimingFunctionLinear)
rotationAnimation.duration = 1
rotationAnimation.repeatCount = Float.infinity
Expand Down

0 comments on commit 76a8f58

Please sign in to comment.