Skip to content

Commit

Permalink
update swift version 4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
AhmettKeskin committed Sep 6, 2018
1 parent 09c9125 commit a0870a9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions InteractivePlayerView.podspec
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
Pod::Spec.new do |s|
s.name = 'InteractivePlayerView'
s.version = '2.0'
s.version = '3.0'
s.license = { :type => 'MIT' }
s.homepage = 'https://github.com/AhmettKeskin/InteractivePlayerView'
s.authors = { 'Ahmet Keskin' => '[email protected]' }
s.social_media_url = 'https://twitter.com/_Ahmettkeskin'
s.summary = 'Custom music player view iOS'
s.ios.deployment_target = '8.0'
s.ios.deployment_target = '9.0'
s.source = { :git => 'https://github.com/AhmettKeskin/InteractivePlayerView.git', :tag => s.version }
s.resources = "ipv_source/*.{xib}"
s.source_files = 'ipv_source/*.{swift}'
Expand Down
4 changes: 2 additions & 2 deletions InteractivePlayerView.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "co.mobiwise.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 3.0;
SWIFT_VERSION = 4.0;
};
name = Debug;
};
Expand All @@ -395,7 +395,7 @@
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = "co.mobiwise.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 3.0;
SWIFT_VERSION = 4.0;
};
name = Release;
};
Expand Down
14 changes: 7 additions & 7 deletions ipv_source/InteractivePlayerView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -358,8 +358,8 @@ class InteractivePlayerView : UIView {
private func addCirle(arcRadius: CGFloat, capRadius: CGFloat, color: UIColor, strokeStart : CGFloat, strokeEnd : CGFloat) {

let centerPoint = CGPoint(x: self.bounds.midX ,y: self.bounds.midY)
let startAngle = CGFloat(M_PI_2)
let endAngle = CGFloat(M_PI * 2 + M_PI_2)
let startAngle = CGFloat(Double.pi/2)
let endAngle = CGFloat(Double.pi * 2 + Double.pi/2)

let path = UIBezierPath(arcCenter:centerPoint, radius: frame.width/2+5, startAngle:startAngle, endAngle:endAngle, clockwise: true).cgPath

Expand All @@ -381,8 +381,8 @@ class InteractivePlayerView : UIView {

private func createProgressCircle(){
let centerPoint = CGPoint(x: self.bounds.midX ,y: self.bounds.midY)
let startAngle = CGFloat(M_PI_2)
let endAngle = CGFloat(M_PI * 2 + M_PI_2)
let startAngle = CGFloat(Double.pi/2)
let endAngle = CGFloat(Double.pi * 2 + Double.pi/2)

// Use UIBezierPath as an easy way to create the CGPath for the layer.
// The path should be the entire circle.
Expand Down Expand Up @@ -455,7 +455,7 @@ class InteractivePlayerView : UIView {

}

func updateTime(){
@objc func updateTime(){

self.duration += 0.1
let totalDuration = Int(self.duration)
Expand All @@ -472,7 +472,7 @@ class InteractivePlayerView : UIView {
}

/* Start timer and animation */
func start(){
@objc func start(){
self.startTimer()
}

Expand All @@ -494,7 +494,7 @@ class InteractivePlayerView : UIView {
self.addGestureRecognizer(gesture)
}

func handlePanGesture(gesture:UIPanGestureRecognizer){
@objc func handlePanGesture(gesture:UIPanGestureRecognizer){
if(!self.panEnabled){
return;
}
Expand Down

0 comments on commit a0870a9

Please sign in to comment.