mirror of
https://github.com/kiwix/kiwix-apple.git
synced 2025-09-26 21:39:37 -04:00
search rounded corner view bug fix
This commit is contained in:
parent
8d594535ba
commit
1af328ca3d
@ -49,7 +49,7 @@
|
||||
</dict>
|
||||
</array>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1.8.1862</string>
|
||||
<string>1.8.1869</string>
|
||||
<key>ITSAppUsesNonExemptEncryption</key>
|
||||
<false/>
|
||||
<key>LSRequiresIPhoneOS</key>
|
||||
|
@ -67,8 +67,21 @@ class SearchHRegularDropShadowView: UIView {
|
||||
}
|
||||
|
||||
class SearchRoundedCornerView: UIView {
|
||||
|
||||
override func awakeFromNib() {
|
||||
layer.masksToBounds = true
|
||||
layer.cornerRadius = 10.0
|
||||
}
|
||||
}
|
||||
|
||||
override func traitCollectionDidChange(previousTraitCollection: UITraitCollection?) {
|
||||
guard traitCollection != previousTraitCollection else {return}
|
||||
switch traitCollection.horizontalSizeClass {
|
||||
case .Regular:
|
||||
layer.cornerRadius = 10.0
|
||||
case .Compact:
|
||||
layer.cornerRadius = 0.0
|
||||
default:
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -21,7 +21,7 @@
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1.8.1862</string>
|
||||
<string>1.8.1869</string>
|
||||
<key>NSExtension</key>
|
||||
<dict>
|
||||
<key>NSExtensionMainStoryboard</key>
|
||||
|
Loading…
x
Reference in New Issue
Block a user