From 6cfc5f216cb06a6cc4d40bba7a4d842d8f3b07ef Mon Sep 17 00:00:00 2001 From: DavidYu <654070281@qq.com> Date: Sun, 24 Apr 2022 10:46:29 +0800 Subject: [PATCH] public fix --- Sources/did-motif-ios/DIDMotifUtils.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/did-motif-ios/DIDMotifUtils.swift b/Sources/did-motif-ios/DIDMotifUtils.swift index f8546dd..f441a8d 100644 --- a/Sources/did-motif-ios/DIDMotifUtils.swift +++ b/Sources/did-motif-ios/DIDMotifUtils.swift @@ -131,7 +131,7 @@ public extension DIDMotifUtils { return UIBezierPath.init(roundedRect: CGRect(x: 0, y: 0, width: side, height: side), cornerRadius: side/2) } - static func cornerRadiusWith(side: CGFloat) -> CGFloat { + public static func cornerRadiusWith(side: CGFloat) -> CGFloat { return side > 80 ? 10 : floor(0.1*side + 2) }