flutter在Xcode26打包的iOS26上全屏支持右滑的问题

25年的雨水太少 小区的树木枯死很多 希望缺的冬天补上

一、 右滑返回退出flutter页面

使用Xcode26刚打包的包在iOS26上测试发现右滑直接退出了flutter的页面回到了native页面,此时不管flutter页面中跳转了很多次。

  • 第一反应就是flutter新增加东西了,
  • iOS26应该新增加东西了,
  • flutter还没适配吧!

二、解决

一番搜索后确认是iOS26新增的interactiveContentPopGestureRecognizer属性的,问题。那么在跳转到FlutterViewController的时候直接设置为false。

swift 复制代码
    @objc
    private func jumpToTaskVC() {
        let vc = HXDispatchMainFlutterViewController.init(withEntrypoint: nil)
        self.navigationController?.pushViewController(vc, animated: false)
        self.navigationController?.interactivePopGestureRecognizer?.isEnabled = false
        if #available(iOS 26.0, *) {
             self.navigationController?.interactiveContentPopGestureRecognizer?.isEnabled = false
        } else {
            // DO nothing
    }

完美。

END

问了AI,尝试了AI提供的所有办法都不行。 AI还是需要努力啊,无法解决人类不知道的,或者没有告诉AI的事。

相关推荐
游戏开发爱好者81 天前
苹果 App 上架流程,结合 Xcode、CI 等常见工具
macos·ios·ci/cd·小程序·uni-app·iphone·xcode
前端老白1 天前
webview在微信小程序中,安卓加载失败,IOS正常加载
android·ios·微信小程序·webview
2501_915106321 天前
用 HBuilder 上架 iOS 应用时如何管理Bundle ID、证书与描述文件
android·ios·小程序·https·uni-app·iphone·webview
ITKEY_1 天前
flutter 运行windows版本 Nuget.exe not found解决办法
flutter
2501_915909061 天前
资源文件混淆在 iOS 应用安全中的实际价值
android·安全·ios·小程序·uni-app·iphone·webview
2501_915918411 天前
iOS App 性能测试中常被忽略的运行期问题
android·ios·小程序·https·uni-app·iphone·webview
kirk_wang1 天前
Flutter `flutter_statusbarcolor_ns` 在 OpenHarmony 平台的状态栏颜色适配实践
flutter·移动开发·跨平台·arkts·鸿蒙
不爱吃糖的程序媛1 天前
开源鸿蒙跨平台赋能:Flutter/RN/KMP/CMP 多栈适配
flutter·开源·harmonyos
走在路上的菜鸟1 天前
Android学Dart学习笔记第二十二节 类-扩展方法
android·笔记·学习·flutter
Name_NaN_None1 天前
iPhone怎么投屏到电脑上?
ios·电脑·iphone