Skip to content

Commit

Permalink
Merge pull request #3 from ArcBlock/corner-radius-improve
Browse files Browse the repository at this point in the history
Change radius to 1.5
  • Loading branch information
karthuszY authored Jun 30, 2022
2 parents d32a777 + 1f4d123 commit ac51880
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/did-motif-ios/DIDMotifUtils.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}

}

0 comments on commit ac51880

Please sign in to comment.