mirror of
https://github.com/kiwix/kiwix-apple.git
synced 2025-09-27 22:10:57 -04:00
search rounded corner view bug fix
This commit is contained in:
parent
8d594535ba
commit
1af328ca3d
@ -49,7 +49,7 @@
|
|||||||
</dict>
|
</dict>
|
||||||
</array>
|
</array>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>1.8.1862</string>
|
<string>1.8.1869</string>
|
||||||
<key>ITSAppUsesNonExemptEncryption</key>
|
<key>ITSAppUsesNonExemptEncryption</key>
|
||||||
<false/>
|
<false/>
|
||||||
<key>LSRequiresIPhoneOS</key>
|
<key>LSRequiresIPhoneOS</key>
|
||||||
|
@ -67,8 +67,21 @@ class SearchHRegularDropShadowView: UIView {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class SearchRoundedCornerView: UIView {
|
class SearchRoundedCornerView: UIView {
|
||||||
|
|
||||||
override func awakeFromNib() {
|
override func awakeFromNib() {
|
||||||
layer.masksToBounds = true
|
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>
|
<key>CFBundleSignature</key>
|
||||||
<string>????</string>
|
<string>????</string>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>1.8.1862</string>
|
<string>1.8.1869</string>
|
||||||
<key>NSExtension</key>
|
<key>NSExtension</key>
|
||||||
<dict>
|
<dict>
|
||||||
<key>NSExtensionMainStoryboard</key>
|
<key>NSExtensionMainStoryboard</key>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user