Commit 8f30fea7 by Dmitriy Stepanets

Updated pods

parent f5537347
......@@ -228,7 +228,7 @@ CHECKOUT OPTIONS:
:commit: ceb7ba910a35973cbcd41c73a62be6305aed4d13
:git: https://github.com/StepanetsDmtry/Cirque.git
Swarm:
:commit: 461fe863e8ac2963fd16cbd109620a68e1931103
:commit: da293fad110eb426679bfe0e4a7db709e37b278f
:git: "git@gitlab.pinsightmedia.com:oneweather/wdt-skywisetilekit-ios.git"
SPEC CHECKSUMS:
......
......@@ -228,7 +228,7 @@ CHECKOUT OPTIONS:
:commit: ceb7ba910a35973cbcd41c73a62be6305aed4d13
:git: https://github.com/StepanetsDmtry/Cirque.git
Swarm:
:commit: 461fe863e8ac2963fd16cbd109620a68e1931103
:commit: da293fad110eb426679bfe0e4a7db709e37b278f
:git: "git@gitlab.pinsightmedia.com:oneweather/wdt-skywisetilekit-ios.git"
SPEC CHECKSUMS:
......
......@@ -352,6 +352,23 @@ extension SwarmOverlay {
index = loopTimes.count - 1
}
}
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() {
guard animating else { return }
......
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