mirror of
https://github.com/kiwix/kiwix-apple.git
synced 2025-09-28 14:35:03 -04:00
Library button hittest
This commit is contained in:
parent
0720adf7df
commit
7c33a9a987
@ -49,7 +49,7 @@
|
|||||||
</dict>
|
</dict>
|
||||||
</array>
|
</array>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>1.8.4043</string>
|
<string>1.8.4048</string>
|
||||||
<key>ITSAppUsesNonExemptEncryption</key>
|
<key>ITSAppUsesNonExemptEncryption</key>
|
||||||
<false/>
|
<false/>
|
||||||
<key>LSRequiresIPhoneOS</key>
|
<key>LSRequiresIPhoneOS</key>
|
||||||
|
@ -74,10 +74,10 @@
|
|||||||
<color key="textColor" red="1" green="0.50196081400000003" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
|
<color key="textColor" red="1" green="0.50196081400000003" blue="0.0" alpha="1" colorSpace="calibratedRGB"/>
|
||||||
<nil key="highlightedColor"/>
|
<nil key="highlightedColor"/>
|
||||||
</label>
|
</label>
|
||||||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="nTw-d7-YqD">
|
<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="270" y="10" width="42" height="46"/>
|
<rect key="frame" x="286" y="10" width="26" height="46"/>
|
||||||
<constraints>
|
<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"/>
|
<constraint firstAttribute="height" constant="46" id="qqN-B2-nid"/>
|
||||||
</constraints>
|
</constraints>
|
||||||
<state key="normal" image="Dots"/>
|
<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>
|
<key>CFBundleSignature</key>
|
||||||
<string>????</string>
|
<string>????</string>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>1.8.4043</string>
|
<string>1.8.4048</string>
|
||||||
<key>NSExtension</key>
|
<key>NSExtension</key>
|
||||||
<dict>
|
<dict>
|
||||||
<key>NSExtensionMainStoryboard</key>
|
<key>NSExtensionMainStoryboard</key>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user