Skip to content

Commit

Permalink
change coner radius
Browse files Browse the repository at this point in the history
  • Loading branch information
karthuszY committed Jun 30, 2022
1 parent 4047b22 commit 4300a10
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sources/did-motif-ios/DIDMotifUtils.swift
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@ public extension DIDMotifUtils {
}

public static func cornerRadiusWith(side: CGFloat) -> CGFloat {
return side > 80 ? 10 : floor(0.1*side + 2)
// 大于80时固定10 小于20时固定1
return side > 80 ? 10 : (side <= 20 ? 1 : floor(0.1*side + 2))
}

}

0 comments on commit 4300a10

Please sign in to comment.