Skip to content

Commit

Permalink
added to main thread
Browse files Browse the repository at this point in the history
  • Loading branch information
wvabrinskas committed Aug 23, 2017
1 parent 5da7fc5 commit 89d627f
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 5 deletions.
2 changes: 1 addition & 1 deletion WVCheckMark.podspec
Expand Up @@ -16,7 +16,7 @@ Pod::Spec.new do |s|
#

s.name = "WVCheckMark"
s.version = "1.0.6"
s.version = "1.0.7"
s.summary = "Animated status indicators."

# This description is used to generate tags and improve search results.
Expand Down
Binary file not shown.
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>SchemeUserState</key>
<dict>
<key>WVCheckMark.xcscheme</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
</dict>
</dict>
</dict>
</plist>
10 changes: 6 additions & 4 deletions WVCheckMark/WVCheckMark.swift
Expand Up @@ -147,10 +147,12 @@ open class WVCheckMark: UIView {
}

fileprivate func clear() {
if let t = self.layer.sublayers {
for l in t {
if l is CAShapeLayer {
l.removeFromSuperlayer()
DispatchQueue.main.async {
if let t = self.layer.sublayers {
for l in t {
if l is CAShapeLayer {
l.removeFromSuperlayer()
}
}
}
}
Expand Down

0 comments on commit 89d627f

Please sign in to comment.