完善任务流程、键盘适配与页面交互

This commit is contained in:
2026-07-10 15:56:15 +08:00
parent f88a85a807
commit ab5220e460
189 changed files with 16779 additions and 1038 deletions

View File

@ -1,10 +1,8 @@
//
// AppDelegate.swift
// suixinkan
//
// Created by hanqiu on 2026/7/6.
//
import IQKeyboardManagerSwift
import IQKeyboardToolbarManager
import UIKit
@main
@ -14,6 +12,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
@objc var window: UIWindow?
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
configureKeyboardManager()
UmengBootstrap.configureIfNeeded()
WeChatManager.shared.registerIfNeeded()
if AppStore.shared.privacyAgreementAccepted, !AppStore.shared.token.isEmpty {
@ -36,5 +35,14 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
// Use this method to release any resources that were specific to the discarded scenes, as they will not return.
}
private func configureKeyboardManager() {
IQKeyboardManager.shared.isEnabled = true
IQKeyboardManager.shared.keyboardDistance = 12
IQKeyboardManager.shared.resignOnTouchOutside = true
IQKeyboardToolbarManager.shared.isEnabled = true
IQKeyboardToolbarManager.shared.toolbarConfiguration.useTextInputViewTintColor = true
IQKeyboardToolbarManager.shared.toolbarConfiguration.previousNextDisplayMode = .alwaysShow
IQKeyboardToolbarManager.shared.playInputClicks = false
}
}