mirror of
https://github.com/kiwix/kiwix-apple.git
synced 2025-09-27 05:49:25 -04:00
refactor
This commit is contained in:
parent
7d11c1499a
commit
a024ba7efe
@ -128,7 +128,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
|
||||
self.mainController?.showSearch(animated: false)
|
||||
completionHandler(true)
|
||||
case "org.kiwix.bookmarks":
|
||||
self.mainController?.showBookmarkTBVC()
|
||||
self.mainController?.showBookmarkController()
|
||||
completionHandler(true)
|
||||
case recentShortcutTypeString:
|
||||
guard let urlString = shortcutItem.userInfo?["URL"] as? String,
|
||||
|
@ -70,7 +70,7 @@ extension MainController: UIWebViewDelegate, SFSafariViewControllerDelegate, LPT
|
||||
|
||||
func barButtonTapped(sender: LPTBarButtonItem, gestureRecognizer: UIGestureRecognizer) {
|
||||
guard sender == bookmarkButton else {return}
|
||||
showBookmarkTBVC()
|
||||
showBookmarkController()
|
||||
}
|
||||
|
||||
func barButtonLongPressedStart(sender: LPTBarButtonItem, gestureRecognizer: UIGestureRecognizer) {
|
||||
|
@ -158,7 +158,7 @@ extension MainController {
|
||||
|
||||
// MARK: - Show Bookmark
|
||||
|
||||
func showBookmarkTBVC() {
|
||||
func showBookmarkController() {
|
||||
let controller = Controllers.bookmark
|
||||
controller.modalPresentationStyle = .FormSheet
|
||||
presentViewController(controller, animated: true, completion: nil)
|
||||
|
@ -49,7 +49,7 @@
|
||||
</dict>
|
||||
</array>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1.8.1473</string>
|
||||
<string>1.8.1475</string>
|
||||
<key>ITSAppUsesNonExemptEncryption</key>
|
||||
<false/>
|
||||
<key>LSRequiresIPhoneOS</key>
|
||||
|
@ -21,7 +21,7 @@
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1.8.1477</string>
|
||||
<string>1.8.1479</string>
|
||||
<key>NSExtension</key>
|
||||
<dict>
|
||||
<key>NSExtensionMainStoryboard</key>
|
||||
|
Loading…
x
Reference in New Issue
Block a user