Files
AFFiNE-Mirror/packages/frontend/apps/ios/App/App/AffineViewController+AIButton.swift
T
2025-06-17 13:28:20 +08:00

23 lines
522 B
Swift

//
// AffineViewController+AIButton.swift
// App
//
// Created by on 2025/1/8.
//
import Intelligents
import UIKit
extension AFFiNEViewController: IntelligentsButtonDelegate {
func onIntelligentsButtonTapped(_ button: IntelligentsButton) {
IntelligentContext.shared.webView = webView!
button.beginProgress()
IntelligentContext.shared.preparePresent() {
button.stopProgress()
let controller = IntelligentsController()
self.present(controller, animated: true)
}
}
}