1 Commits

Author SHA1 Message Date
Kaan Dedeoglu a0f30e0605 Mark KDCircularProgress with @objcMembers so all public fields are visible from Objective-C 2019-04-28 16:21:45 +02:00
3 changed files with 11 additions and 2 deletions
@@ -0,0 +1,8 @@
<?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>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
+1 -1
View File
@@ -2,7 +2,7 @@
// KDCircularProgress iOS.h
// KDCircularProgress iOS
//
// Created by Kaan Dedeoglu on 9/21/16.
// Copyright (c) 2019 Kaan Dedeoglu. All rights reserved.
//
//
+2 -1
View File
@@ -26,6 +26,7 @@ private extension Comparable {
}
@IBDesignable
@objcMembers
public class KDCircularProgress: UIView, CAAnimationDelegate {
private enum Conversion {
static func degreesToRadians (value:CGFloat) -> CGFloat {
@@ -443,7 +444,7 @@ public class KDCircularProgress: UIView, CAAnimationDelegate {
let glowValue = GlowConstants.glowAmount(forAngle: reducedAngle, glowAmount: glowAmount, glowMode: glowMode, size: width)
if glowValue > 0 {
imageCtx?.setShadow(offset: CGSize.zero, blur: glowValue, color: UIColor.black.cgColor)
imageCtx?.setShadow(offset: CGSize(width: -1.0, height: -1.0), blur: glowValue, color: UIColor.black.cgColor)
}
let linecap: CGLineCap = roundedCorners ? .round : .butt