Commit 8f30fea7 by Dmitriy Stepanets

Updated pods

parent f5537347
...@@ -228,7 +228,7 @@ CHECKOUT OPTIONS: ...@@ -228,7 +228,7 @@ CHECKOUT OPTIONS:
:commit: ceb7ba910a35973cbcd41c73a62be6305aed4d13 :commit: ceb7ba910a35973cbcd41c73a62be6305aed4d13
:git: https://github.com/StepanetsDmtry/Cirque.git :git: https://github.com/StepanetsDmtry/Cirque.git
Swarm: Swarm:
:commit: 461fe863e8ac2963fd16cbd109620a68e1931103 :commit: da293fad110eb426679bfe0e4a7db709e37b278f
:git: "git@gitlab.pinsightmedia.com:oneweather/wdt-skywisetilekit-ios.git" :git: "git@gitlab.pinsightmedia.com:oneweather/wdt-skywisetilekit-ios.git"
SPEC CHECKSUMS: SPEC CHECKSUMS:
......
...@@ -228,7 +228,7 @@ CHECKOUT OPTIONS: ...@@ -228,7 +228,7 @@ CHECKOUT OPTIONS:
:commit: ceb7ba910a35973cbcd41c73a62be6305aed4d13 :commit: ceb7ba910a35973cbcd41c73a62be6305aed4d13
:git: https://github.com/StepanetsDmtry/Cirque.git :git: https://github.com/StepanetsDmtry/Cirque.git
Swarm: Swarm:
:commit: 461fe863e8ac2963fd16cbd109620a68e1931103 :commit: da293fad110eb426679bfe0e4a7db709e37b278f
:git: "git@gitlab.pinsightmedia.com:oneweather/wdt-skywisetilekit-ios.git" :git: "git@gitlab.pinsightmedia.com:oneweather/wdt-skywisetilekit-ios.git"
SPEC CHECKSUMS: SPEC CHECKSUMS:
......
...@@ -353,6 +353,23 @@ extension SwarmOverlay { ...@@ -353,6 +353,23 @@ extension SwarmOverlay {
} }
} }
public func setValidTime(date:Date) {
let dateString = dateFormatter.string(from: date)
if let validTimes = validTimes as? [String:AnyObject] {
let dates = validTimes.map{$0.value}.first as? [String]
if let stringArray = dates {
guard let index = (stringArray.firstIndex{$0 == dateString}) else { return }
if index >= loopTimes.count {
self.index = loopTimes.count - 1
}
else {
self.index = index
}
}
}
}
public func pauseForMove() { public func pauseForMove() {
guard animating else { return } guard animating else { return }
frameTimer?.fireDate = Date.distantFuture frameTimer?.fireDate = Date.distantFuture
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment