From 1f4d123eccb72484b0d12ba75058736657ec7961 Mon Sep 17 00:00:00 2001 From: karthus <675377091@qq.com> Date: Thu, 30 Jun 2022 10:37:52 +0800 Subject: [PATCH] change radius to 1.5 --- Sources/did-motif-ios/DIDMotifUtils.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/did-motif-ios/DIDMotifUtils.swift b/Sources/did-motif-ios/DIDMotifUtils.swift index 8fccd54..232e12b 100644 --- a/Sources/did-motif-ios/DIDMotifUtils.swift +++ b/Sources/did-motif-ios/DIDMotifUtils.swift @@ -132,8 +132,8 @@ public extension DIDMotifUtils { } public static func cornerRadiusWith(side: CGFloat) -> CGFloat { - // 大于80时固定10 小于20时固定1 - return side > 80 ? 10 : (side <= 20 ? 1 : floor(0.1*side + 2)) + // 大于80时固定10 小于20时固定1.5 + return side > 80 ? 10 : (side <= 20 ? 1.5 : floor(0.1*side + 2)) } }