mirror of
https://github.com/kiwix/kiwix-apple.git
synced 2025-09-28 06:25:04 -04:00
Library button hittest
This commit is contained in:
parent
0720adf7df
commit
7c33a9a987
@ -49,7 +49,7 @@
|
||||
</dict>
|
||||
</array>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1.8.4043</string>
|
||||
<string>1.8.4048</string>
|
||||
<key>ITSAppUsesNonExemptEncryption</key>
|
||||
<false/>
|
||||
<key>LSRequiresIPhoneOS</key>
|
||||
|
@ -74,10 +74,10 @@
|
||||
<color key="textColor" red="1" green="0.50196081400000003" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="nTw-d7-YqD">
|
||||
<rect key="frame" x="270" y="10" width="42" height="46"/>
|
||||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="nTw-d7-YqD" customClass="LibraryMoreButton" customModule="Kiwix" customModuleProvider="target">
|
||||
<rect key="frame" x="286" y="10" width="26" height="46"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="42" id="lBA-pd-Pa2"/>
|
||||
<constraint firstAttribute="width" constant="26" id="lBA-pd-Pa2"/>
|
||||
<constraint firstAttribute="height" constant="46" id="qqN-B2-nid"/>
|
||||
</constraints>
|
||||
<state key="normal" image="Dots"/>
|
||||
|
@ -157,3 +157,11 @@ class MessageBarButtonItem: UIBarButtonItem {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class LibraryMoreButton: UIButton {
|
||||
override func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView? {
|
||||
if self.isHidden || !self.isUserInteractionEnabled || self.alpha < 0.01 { return nil }
|
||||
let rect = bounds.insetBy(dx: -16, dy: 0)
|
||||
return rect.contains(point) ? self : nil
|
||||
}
|
||||
}
|
||||
|
@ -21,7 +21,7 @@
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1.8.4043</string>
|
||||
<string>1.8.4048</string>
|
||||
<key>NSExtension</key>
|
||||
<dict>
|
||||
<key>NSExtensionMainStoryboard</key>
|
||||
|
Loading…
x
Reference in New Issue
Block a user