Skip to content

Commit

Permalink
change radius to 1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
karthuszY committed Jun 30, 2022
1 parent 4300a10 commit 1f4d123
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 1f4d123

Please sign in to comment.