mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Update API
This commit is contained in:
@@ -611,15 +611,9 @@ extension ChatControllerImpl {
|
||||
}
|
||||
|
||||
if #available(iOS 18.0, *) {
|
||||
if self.context.sharedContext.immediateExperimentalUISettings.enableLocalTranslation {
|
||||
if engineExperimentalInternalTranslationService == nil, let hostView = self.context.sharedContext.mainWindow?.hostView {
|
||||
let translationService = ExperimentalInternalTranslationServiceImpl(view: hostView.containerView)
|
||||
engineExperimentalInternalTranslationService = translationService
|
||||
}
|
||||
} else {
|
||||
if engineExperimentalInternalTranslationService != nil {
|
||||
engineExperimentalInternalTranslationService = nil
|
||||
}
|
||||
if engineExperimentalInternalTranslationService == nil, let hostView = self.context.sharedContext.mainWindow?.hostView {
|
||||
let translationService = ExperimentalInternalTranslationServiceImpl(view: hostView.containerView)
|
||||
engineExperimentalInternalTranslationService = translationService
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user