| 中文 | English |
|---|---|
绑定的代码类 CYLTabBarHostView:CYLTabBarController/CYLTabBarHostView.h |
Bound to the class CYLTabBarHostView: CYLTabBarController/CYLTabBarHostView.h |
| 中文 | English |
|---|---|
CrossPlatform/ 中有两个组件库,把 CYLTabBarController(iOS)与它的 Android 版本封装为 React Native 组件和 Flutter widget:react-native-cyltabbar 与 flutter_cyltabbar。两者都用配置文件的键描述 TabBar,iOS 与 Android 共用同一份配置。它们都是库中 CYLTabBarHostView(iOS 与 Android 各一个)的薄封装,这个视图也可以在原生 App 中直接使用。每个组件库都带一个示例 App,示例直接引用本仓库中的 iOS 与 Android 库源码,修改库代码后重新运行示例即可调试。 |
CrossPlatform/ holds two component libraries that wrap CYLTabBarController (iOS) and its Android port as a React Native component and a Flutter widget: react-native-cyltabbar and flutter_cyltabbar. Both describe the tab bar with the keys of the configuration file, so iOS and Android share one configuration. Both are thin wrappers around the library's CYLTabBarHostView (one on iOS, one on Android), which native apps can use directly too. Each library comes with an example app that uses the iOS and Android library sources of this repository: change the library, run the example again, and debug it. |
| React Native(iOS) | Flutter(Android) |
|---|---|
![]() |
![]() |
| 指南 | Guide | 内容 / Content |
|---|---|---|
| React Native 接入 | React Native integration | 运行示例、添加依赖、pod install、属性与事件、常见问题。 / Running the example, the dependency, pod install, props and events, troubleshooting. |
| Flutter 接入 | Flutter integration | 运行示例、FlutterFragmentActivity、Swift Package Manager 或 CocoaPods、字段、常见问题。 / Running the example, FlutterFragmentActivity, Swift Package Manager or CocoaPods, fields, troubleshooting. |
| 微信小程序版 | WeChat Mini Program | cyl-tab-bar 组件(纯小程序实现,读取相同的配置键)、示例、评分与待办。 / The cyl-tab-bar component (pure mini program code reading the same configuration keys), the example, the score and the TODO list. |
| 鸿蒙版(开发中) | HarmonyOS (in progress) | 鸿蒙系统版本(HarmonyOS 6.0.1,API 21)、iOS 公开 API 表与 iOS Example 演示表(第二列为鸿蒙实现,默认 TODO),两表合并实时打分。 / The HarmonyOS version (HarmonyOS 6.0.1, API 21), the table of iOS public APIs and the table of iOS Example demos (second column: the HarmonyOS implementation, TODO by default), scored together live. |
| 中文 | English |
|---|---|
原生示例 Example-PAG 与 Example-Rive(Rive 课程 App,界面与资源在 Example-SwiftUI-Rive)各有 React Native 与 Flutter 版本,共 4 个。TabBar 与原生示例一致:同样的 PAG / Rive 图标、标题、PlusButton、角标与样式切换,iOS 与 Android 都是;页面由 JS / Dart 复刻主要内容(Rive 示例含 Play / Stop),设置列表只保留样式切换等几项。 |
The native demos Example-PAG and Example-Rive (the Rive course app, its screens and assets in Example-SwiftUI-Rive) each have a React Native and a Flutter version: 4 demos. The tab bar matches the native demo: the same PAG / Rive icons, titles, plus button, badges and style switching, on iOS and Android; JS / Dart redraws the pages' main content (Play / Stop in the Rive demos), and the settings list keeps only a few rows such as the style switch. |
| 示例 | Demo | 运行 / Run |
|---|---|---|
| React Native · PAG | React Native · PAG | cd CrossPlatform/react-native-cyltabbar && yarn && (cd example-pag/ios && LANG=en_US.UTF-8 pod install) && yarn example-pag ios(或 / or yarn example-pag android) |
| React Native · Rive | React Native · Rive | 同上,把 pag 换成 rive(iOS 15.1+,React Native 的最低版本)。 / The same with rive instead of pag (iOS 15.1+, React Native's minimum). |
| Flutter · PAG | Flutter · PAG | cd CrossPlatform/flutter_cyltabbar/example_pag && flutter run |
| Flutter · Rive | Flutter · Rive | cd CrossPlatform/flutter_cyltabbar/example_rive && flutter run(iOS 15.0+) |
| 中文 | English |
|---|---|
资源不复制:iOS 工程把 Example-PAG / Example-SwiftUI-Rive 中的 .pag、.riv 与图片直接加入 App target;Android 的 assets.srcDirs 指向同样的文件夹,并通过 Gradle 任务使用 demokit 的 DemoAssets.kt(MainActivity 调用 DemoAssets.install())。iOS 使用 CocoaPods 子库 CYLTabBarController/PAG 或 /Rive(Flutter 示例因此关闭了 Swift Package Manager);Android 依赖 libpag 4.5.98 或 rive-android 10.3.0。Podfile 的 post_install 把所有 pod 的部署版本设为 15.0(React Native 为其最低版本 15.1),见 AGENTS.md「Xcode projects」。.pag 文件不在仓库中:先在 Example-PAG 中执行一次 pod install 下载。 |
The assets are not copied: the iOS projects add the .pag, .riv and image files of Example-PAG / Example-SwiftUI-Rive to the app target; on Android assets.srcDirs points at the same folders, and a Gradle task brings in demokit's DemoAssets.kt (MainActivity calls DemoAssets.install()). iOS uses the CocoaPods subspec CYLTabBarController/PAG or /Rive (so the Flutter demos turn Swift Package Manager off); Android depends on libpag 4.5.98 or rive-android 10.3.0. The Podfile's post_install sets every pod's deployment target to 15.0 (React Native: its minimum, 15.1); see AGENTS.md, "Xcode projects". The .pag files are not in the repository: run pod install in Example-PAG once to download them. |
| 示例 | Demo | iOS | Android |
|---|---|---|---|
| React Native · PAG | React Native · PAG | ![]() |
![]() |
| Flutter · PAG | Flutter · PAG | ![]() |
![]() |
| React Native · Rive | React Native · Rive | ![]() |
![]() |
| Flutter · Rive | Flutter · Rive | ![]() |
![]() |
| 中文 | English |
|---|---|
React Native 与 Flutter 组件已支持 SVGA Tab 图标(2026-11-16,96c8efc、5682b9e、2707d5a、8feac32):组件把 Tab 属性原样交给原生库,SVGA 由原生库的 SVGA 播放器播放。组件本身不带 SVGA 播放器,因为它较大且多数 App 不需要:App 按下表加入即可,与 PAG / Rive 相同。完整示例:react-native-cyltabbar/example-rive、flutter_cyltabbar/example_rive(Bell 页面的「Tab 图标来源」)。 |
The React Native and Flutter components support SVGA tab icons (2026-11-16, 96c8efc, 5682b9e, 2707d5a, 8feac32): they pass the tab attributes to the native library unchanged, and its SVGA player plays them. The components do not bundle an SVGA player, which is large and which most apps do not need: an app adds it as below, as for PAG and Rive. Complete examples: react-native-cyltabbar/example-rive and flutter_cyltabbar/example_rive ("Tab icon source" on the Bell page). |
| 步骤 / Step | iOS | Android |
|---|---|---|
| 1. 播放器 / The player | Podfile:pod 'CYLTabBarController/SVGA';静态库(React Native 默认、Flutter use_frameworks! :linkage => :static)还需 pod 'SVGAPlayerLite', :modular_headers => true 与 pod 'Protobuf', :modular_headers => true。 / Podfile: pod 'CYLTabBarController/SVGA'; with static libraries (React Native's default, Flutter's use_frameworks! :linkage => :static) also pod 'SVGAPlayerLite', :modular_headers => true and pod 'Protobuf', :modular_headers => true. |
implementation "com.github.yyued:SVGAPlayer-Android:2.6.1",仓库加入 maven { url "https://jitpack.io" }(只用于 com.github.yyued);AndroidManifest.xml 的 <application> 加 tools:replace="android:allowBackup,android:label"(该库的清单声明了这两项)。 / implementation "com.github.yyued:SVGAPlayer-Android:2.6.1" with maven { url "https://jitpack.io" } (for com.github.yyued only); tools:replace="android:allowBackup,android:label" on <application> in AndroidManifest.xml (the library's manifest declares both). |
| 2. 文件 / The files | .svga 文件加入 App target(main bundle)。 / Add the .svga files to the app target (main bundle). |
.svga 文件放入 assets(或 assets.srcDir)。 / Put the .svga files into the assets (or an assets.srcDir). |
| 3. Tab 属性 / Tab attributes | items 中每个 Tab:CYLTabBarSVGAFilePath: 'tab_chat.svga'(或网络地址 CYLTabBarSVGAURL)与 CYLTabBarSVGASize: '{32, 32}';深色模式可另给 CYLTabBarSVGADarkFilePath / CYLTabBarSVGADarkURL。 / Per tab in items: CYLTabBarSVGAFilePath: 'tab_chat.svga' (or a network address in CYLTabBarSVGAURL) and CYLTabBarSVGASize: '{32, 32}'; dark mode may add CYLTabBarSVGADarkFilePath / CYLTabBarSVGADarkURL. |
同左。 / The same. |
| 4. 或配置文件 / Or a configuration file | configurationRoute: 'bundle:svga?name=cyl_tabbar_configuration_svga',文件中用同样的键;不传 items 时 Tab 来自文件。 / configurationRoute: 'bundle:svga?name=cyl_tabbar_configuration_svga', the same keys in the file; without items the tabs come from the file. |
同左(assets 中的 svga/ 目录)。 / The same (an svga/ folder in the assets). |
| 页面中的 SVGA / SVGA in a page | <CYLAnimationView file="tab_home.svga" playing />(React Native)、CYLAnimationView(file: 'tab_home.svga', playing: true)(Flutter)。 |
同左。 / The same. |
| 鸿蒙 / HarmonyOS | CrossPlatform/harmonyos-cyltabbar(ArkTS):配置文件或 Tab 属性中的 CYLTabBarSVGAFilePath(rawfile 路径)/ CYLTabBarSVGAURL / 深色版本 / CYLTabBarSVGASize,由 CYLSVGAView 绘制;演示:configurations/cyl_tabbar_configuration_svga.json(42c2f3c,PR #800);已在 Mate 70 Pro 模拟器上运行(b840da3,截图见 SVGA-Animation)。 / CrossPlatform/harmonyos-cyltabbar (ArkTS): CYLTabBarSVGAFilePath (a rawfile path) / CYLTabBarSVGAURL / the Dark variants / CYLTabBarSVGASize in the configuration file or the tab attributes, drawn by CYLSVGAView; demo: configurations/cyl_tabbar_configuration_svga.json (42c2f3c, PR #800); run on the Mate 70 Pro emulator (b840da3, screenshots in SVGA-Animation). |
— |
| 微信小程序 / WeChat Mini Program | 已支持(2026-11-16):安装 svga-miniprogram(cyl-svga 组件,为小程序 2D 画布编写的 SVGA 2.x 播放器),<cyl-tab-bar generic:cyl-svga-view="cyl-svga">;Tab 属性同上;包内文件需命名为 .svga.bin。示例:npm run setup -- --animation=svga。 / Supported (2026-11-16): install svga-miniprogram (the cyl-svga component, an SVGA 2.x player written for the mini program 2D canvas), <cyl-tab-bar generic:cyl-svga-view="cyl-svga">; the same tab attributes; package copies are named .svga.bin. Example: npm run setup -- --animation=svga. |
— |
| 中文 | English |
|---|---|
页面中的 PAG / Rive / Lottie 动画用 CYLAnimationView(React Native 组件、Flutter widget)播放,它使用库的动画引擎(CYLTabBarItemAnimationFactory),因此支持的文件与 Tab 图标相同,App 只需安装对应的子库。file 是文件名(iOS:App 包;Android:assets),options 是动画选项,playing 控制播放。 |
CYLAnimationView (a React Native component, a Flutter widget) plays PAG / Rive / Lottie animations in a page through the library's animation engine (CYLTabBarItemAnimationFactory), so it supports the same files as tab icons and the app only installs the matching subspec. file is a file name (iOS: the app bundle; Android: assets), options the animation options, playing starts and stops it. |
<CYLAnimationView file="button.riv" options={{ stateMachine: 'State Machine 1', input: 'isHover' }} playing={playing} style={{ width: 240, height: 64 }} />CYLAnimationView(file: 'shapes.riv', options: {'legacy': 1}, playing: true)| 中文 | English |
|---|---|
选项按名称排序后写入 URL 片段(file#k=v&…),Rive 选项:artboard、stateMachine、input、triggerInput、animation、duration、legacy。没有安装对应子库时视图为空。Android 的 Rive 由库在首次使用时初始化(Rive.init),App 无需调用。 |
The options go into the URL fragment, sorted by name (file#k=v&…); Rive options: artboard, stateMachine, input, triggerInput, animation, duration, legacy. Without the matching subspec the view stays empty. On Android the library initializes Rive on first use (Rive.init): the app does not call it. |
| 中文 | English |
|---|---|
组件把属性转为配置 JSON,交给 CYLTabBarHostView。它用 +[CYLTabBarController tabBarControllerWithConfiguration:](Android:CYLTabBarController.tabBarControllerWithConfiguration(activity, map))创建 TabBarController,加入最近的视图控制器 / Activity,只显示 TabBar。 |
The component turns its props into configuration JSON for CYLTabBarHostView. The view creates the tab bar controller with +[CYLTabBarController tabBarControllerWithConfiguration:] (Android: CYLTabBarController.tabBarControllerWithConfiguration(activity, map)), adds it to the nearest view controller / activity, and shows only its bar. |
页面由 JS / Dart 绘制:CYLTabBarControllerPageResolver 为每个 Tab 返回一个透明的空页面;既没有页面 ID 也没有 identifier 的 Tab 也会得到一个。 |
JS / Dart draws the pages: CYLTabBarControllerPageResolver returns a transparent, empty page for every tab, including a tab with neither a page ID nor an identifier. |
图片:URL 字符串(require() 的图片在调试时来自 Metro)在后台线程加载,Flutter asset 由插件的 imageResolver 加载,之后才在主线程创建 TabBar;名称与路径原样交给库。 |
Images: URL strings (a require()d image comes from Metro in debug) are loaded on a background thread, Flutter assets by the plugin's imageResolver, and only then is the bar built on the main thread; names and paths go to the library as they are. |
| TabBar 在视图有真实宽度后才创建(宽度为 0 时布局的液态玻璃 TabBar 会截断标题)。 | The bar is built once the view has a real width (a Liquid Glass bar laid out at width 0 keeps its titles cut). |
PlusButton 由配置键 CYLTabBarControllerPlusButton(字典)注册,点击回调为 CYLTabBarControllerPlusButtonAction。每个视图使用自己的 CYLTabBarControllerContext,每个 context 保留自己的 PlusButton,因此同一个 App 中可以有多个组件。 |
The plus button is registered by the configuration key CYLTabBarControllerPlusButton (a dictionary), with CYLTabBarControllerPlusButtonAction for taps. Each view uses its own CYLTabBarControllerContext, and each context keeps its own plus button, so one app can show several components. |
下标(selectedIndex、badgeValues、onTabSelect)按配置中的 Tab 计算,不含液态玻璃下 PlusButton 的占位页面。 |
Indexes (selectedIndex, badgeValues, onTabSelect) count the configuration's tabs, without the plus button's placeholder page on Liquid Glass. |
高度来自原生 TabBar(含底部安全区);Flutter 中再加上 PlusButton 与角标高出 TabBar 的部分(heightIncludesOverflow),因为 Flutter 会裁剪平台视图。Android 的视图只把导航栏的 inset 传给 TabBar,不传状态栏的。TabBar 上方的区域除 PlusButton 与其角标外不接收触摸(见 touchableRects)。 |
The height comes from the native tab bar (the bottom safe area included); in Flutter it also includes what the plus button and the badges rise above the bar (heightIncludesOverflow), since Flutter clips platform views. On Android the view passes the navigation bar's inset to the bar, not the status bar's. The strip above the bar stays transparent to touches, except on the plus button and its badge (see touchableRects). |
| 中文 | English |
|---|---|
| 自己绘制页面、只需要 TabBar 的原生 App(例如嵌入 Web 内容或游戏画面)可以直接使用它。 | A native app that draws its own pages and needs only the bar (web content, a game view...) can use it directly. |
CYLTabBarHostView *bar = [[CYLTabBarHostView alloc] initWithFrame:CGRectZero];
bar.didSelectTab = ^(NSInteger index, NSString *identifier) { [self showPageAtIndex:index]; };
bar.didTapPlusButton = ^{ [self compose]; };
bar.preferredHeightDidChange = ^(CGFloat height) { self.barHeightConstraint.constant = height; };
bar.configuration = @{
CYLTabBarControllerTabBarItemsAttributes : @[ @{ CYLTabBarItemTitle : @"Home", CYLTabBarItemImage : @"home_normal" },
@{ CYLTabBarItemTitle : @"Me", CYLTabBarItemImage : @"system:person" } ],
CYLTabBarControllerPlusButton : @{ CYLTabBarItemTitle : @"Post", CYLTabBarItemImage : [UIImage imageNamed:@"post_normal"] },
};
bar.badgeValues = @[ @"", @"dot" ];val bar = CYLTabBarHostView(activity)
bar.didSelectTab = { index, identifier -> showPage(index) }
bar.setConfigurationJSON(assets.open("tabbar.json").bufferedReader().readText())| API | API | 说明 / Description |
|---|---|---|
configuration / setConfigurationJSON: |
configuration / setConfigurationJSON |
配置(字典或 JSON 文本),设置后重新创建 TabBar。 / The configuration (a dictionary or JSON text); setting it rebuilds the bar. |
imageResolver |
imageResolver |
在后台线程把其他图片值转为图片;返回 nil 时由视图处理。 / Turns other image values into images on a background thread; nil lets the view handle them. |
selectedIndex、badgeValues |
selectedIndex, badgeValues |
选中的 Tab(-1 由用户决定)、每个 Tab 的角标。 / The selected tab (-1: the user decides), a badge per tab. |
heightIncludesOverflow、preferredHeight、preferredHeightDidChange |
heightIncludesOverflow, preferredHeight, preferredHeightDidChange |
视图需要的高度,以及是否包含高出 TabBar 的部分。 / The height the view needs, and whether it includes what rises above the bar. |
touchableRects、touchableRectsDidChange |
touchableRects, touchableRectsDidChange |
接收触摸的部分(TabBar、PlusButton 与其角标),视图坐标(Android 为 dp)。heightIncludesOverflow 时 TabBar 上方的透明区域只有这些部分接收触摸,其他触摸交给下方的视图;Flutter 用它在 Dart 中做命中测试。 / The parts that take touches (the tab bar, the plus button and its badge), in the view's coordinates (dp on Android). With heightIncludesOverflow, only these take touches in the transparent strip above the bar, and other touches go to the views below; Flutter uses them to hit-test in Dart. |
didSelectTab、didTapPlusButton |
didSelectTab, didTapPlusButton |
点击 Tab、PlusButton;PlusButton 有自己的页面时,选中它报告 didSelectTab(-1, identifier)。 / A tab, the plus button was tapped; when the plus button has its own page, selecting it reports didSelectTab(-1, identifier). |
didLongPressTab |
didLongPressTab |
长按 Tab(下标、identifier、标题)。 / A tab was long-pressed (index, identifier, title). |
loggedIn、didRequestLogin、loginStateDidChange、resetLoggedIn |
loggedIn, didRequestLogin, loginStateDidChange, resetLoggedIn |
登录(#19):未登录时点击需要登录的 Tab 不选中,调用 didRequestLogin(下标、identifier、标题);登录后之前设置的 selectedIndex 生效;退出登录时离开需要登录的 Tab 并报告 didSelectTab。App 未设置 loggedIn 时使用库缓存的状态(iOS NSUserDefaults、Android SharedPreferences),由 loginStateDidChange 报告;resetLoggedIn 恢复使用缓存。见需要登录的 Tab。 / Login (#19): while logged out, a tab that needs login is not selected; didRequestLogin (index, identifier, title) is called. After login the selectedIndex set before applies; logging out leaves such a tab and reports didSelectTab. Until the app sets loggedIn, the cached state (iOS NSUserDefaults, Android SharedPreferences) is used and reported by loginStateDidChange; resetLoggedIn goes back to it. See Tabs That Need Login. |
language |
language |
库自身文字与布局方向使用的语言(如 ar、zh-Hans;nil / null 跟随设备)。iOS 调用 CYLSetLocalizationLanguage(),Android 设置 CYLLocalization.language;从右到左的语言使 TabBar 镜像(第一个 Tab 位于最右侧,液态玻璃气泡随之镜像);然后重新创建 TabBar,与 Objective-C 示例重建根控制器相同。Tab 标题来自配置,请在配置中翻译。 / The language of the library's own texts and of the layout direction (e.g. ar, zh-Hans; nil / null follows the device). iOS calls CYLSetLocalizationLanguage(), Android sets CYLLocalization.language; a right-to-left language mirrors the tab bar (the first tab on the right, the Liquid Glass bubble too); then the tab bar is built again, as the Objective-C example rebuilds its root. The tab titles come from the configuration: translate them there. |
tabBarHidden |
tabBarHidden |
隐藏或显示 TabBar(带动画),所有样式都生效(iOS -[CYLTabBarController setTabBarHidden:animated:],Android setTabBarHidden)。隐藏的 TabBar 不接收触摸:touchableRects 为空,触摸交给下方的页面。 / Hides or shows the tab bar, animated, in every style (iOS -[CYLTabBarController setTabBarHidden:animated:], Android setTabBarHidden). A hidden tab bar takes no touches: touchableRects is empty and the page under it gets them. |
simulateMemoryWarning |
simulateMemoryWarning |
模拟内存警告(CYLSimulateMemoryWarningReport(),issue #426),返回每个 Tab 的结果,每个 Tab 一行,使用库的语言。卸载哪些 Tab 由配置决定:CYLTabBarControllerUnloadsUnselectedViewsOnMemoryWarning、CYLTabBarControllerKeepsLoadedTabBarItemIdentifiers。宿主在创建 TabBar 时创建所有(空白的)页面,因此从未选中的 Tab 显示「已卸载」。 / Simulates a memory warning (CYLSimulateMemoryWarningReport(), issue #426) and returns what happened to each tab, one line per tab, in the library's language. The configuration decides what is unloaded: CYLTabBarControllerUnloadsUnselectedViewsOnMemoryWarning, CYLTabBarControllerKeepsLoadedTabBarItemIdentifiers. The host creates every (empty) page when it builds the tab bar, so a tab never selected reads "unloaded". |
titlePositionAdjustment |
titlePositionAdjustment |
所有 Tab 的标题偏移,运行时设置(iOS -[CYLTabBarController setTitlePositionAdjustment:],Android titlePositionAdjustment),不重新创建 TabBar,优先于配置中的 CYLTabBarControllerTitlePositionAdjustment;重新创建的 TabBar 保留它;对齐标题的 PlusButton 随之移动。nil / null 使用配置中的值。 / The title offset of every tab, set at runtime (iOS -[CYLTabBarController setTitlePositionAdjustment:], Android titlePositionAdjustment) without building the tab bar again, winning over the configuration's CYLTabBarControllerTitlePositionAdjustment; a tab bar built again keeps it; a plus button that aligns its title follows. nil / null keeps the configuration's. |
plusButtonBadgeValue、badgeAnimationType |
plusButtonBadgeValue, badgeAnimationType |
PlusButton 的角标;角标动画(scale、shake、bounce、breathe 等)。 / The plus button's badge; the badge animation (scale, shake, bounce, breathe...). |
badgeAttributes、plusButtonBadgeAttributes |
badgeAttributes, plusButtonBadgeAttributes |
带样式的角标(value、color、animation、radius、centerOffset),每个 Tab 一个,优先于 badgeValues。 / Badges with a style (value, color, animation, radius, centerOffset), one per tab, winning over badgeValues. |
| 图片值 | Image values | 宿主由值(文件、asset、URL)加载的图片按原图绘制(UIImageRenderingModeAlwaysOriginal),与配置中的图片名或路径相同:全彩图标(例如节日皮肤)不会被画成灰色模板剪影。iOS 扁平样式下,不在导航控制器中的页面(宿主的页面)的角标显示在扁平按钮上。 / An image the host loads from a value (a file, an asset, a URL) is drawn as is (UIImageRenderingModeAlwaysOriginal), as an image name or a path in a configuration: full color icons (e.g. holiday skins) are no gray template silhouettes. In iOS FlatDesign, the badges of pages outside a navigation controller (the host's pages) go on the flat buttons. |
tabCoverImages |
tabCoverImages |
覆盖整个 Tab 按钮(两种状态)的图片,覆盖期间清除角标(iOS cyl_coverVisiableTabImageViewOrTabButton:,Android CYLTabBarItemButton.cyl_coverView)。 / An image covering the whole tab button in both states, its badge cleared meanwhile (iOS cyl_coverVisiableTabImageViewOrTabButton:, Android CYLTabBarItemButton.cyl_coverView). |
tabCoverDarkImages |
tabCoverDarkImages |
TabBar 为深色时的封面(皮肤的 CYLTabBarUserInterfaceStyle 优先,否则看系统),按下标与 tabCoverImages 对应。某项没有深色图:两种外观都用浅色封面;只有深色图而没有浅色图:不显示封面;任一列表改变都会重新应用。 / The covers while the bar is dark (the skin's CYLTabBarUserInterfaceStyle first, else the system), by the same index as tabCoverImages. No dark entry: the light cover in both; a dark one without a light one: no cover; changing either list applies them again. |
| delegate | delegate | 宿主是 TabBarController 的 delegate,并把未处理的 delegate 方法交给 controller,使其保留自身行为;didSelectTab 在每次点击 Tab 时上报(iOS 来自 -tabBarController:didSelectControl:)。 / The host is the tab bar controller's delegate and hands the delegate methods it does not handle to the controller, which keeps its own behavior; didSelectTab comes with every tap on a tab (iOS: from -tabBarController:didSelectControl:). |
tabBarController |
tabBarController |
创建后的 TabBarController,可调用库的其他 API。 / The tab bar controller once built, for the library's other APIs. |
Android:activityProvider |
Android: activityProvider |
承载 Fragment 的 Activity,默认为视图 context 中的 FragmentActivity。 / The activity that hosts the fragments; by default the FragmentActivity of the view's context. |
| 中文 | English |
|---|---|
| 原生页面中不能放 React Native / Flutter 内容:组件只提供 TabBar。 | The native pages cannot hold React Native / Flutter content: the components provide the bar only. |
透明区域:Flutter 与 Android 上的 React Native 组件包含 TabBar 上方的透明区域(PlusButton 与角标所在)。只有 PlusButton 与角标接收那里的触摸,其他触摸交给下方的视图:Android 的宿主视图不接收这些触摸,React Native 组件为 box-none,Flutter 在 Dart 中按 touchableRects 命中测试。 |
The transparent strip: Flutter, and React Native on Android, include the strip above the bar (where the plus button and the badges rise). Only the plus button and its badge take touches there; other touches go to the views below: the Android host view does not take them, the React Native component is box-none, and Flutter hit-tests touchableRects in Dart. |
CYLTabBarControllerUserInterfaceStyle 只在 iOS 生效,Android 跟随系统。 |
CYLTabBarControllerUserInterfaceStyle works on iOS only; Android follows the system. |
发布版(R8):组件在本仓库中直接编译 Android 库源码,因此封装层通过 consumerProguardFiles 带上库的 consumer-rules.pro(反射使用的 libpag、Rive、Lottie 类)。 |
Release builds (R8): inside this repository the components compile the Android library's sources, so the wrappers bring the library's consumer-rules.pro along with consumerProguardFiles (the libpag, Rive and Lottie classes used by reflection). |
| 组件库尚未发布到 npm / pub.dev。 | The components are not published to npm / pub.dev yet. |
| 中文 | English |
|---|---|
六个示例(基础、PAG、Rive,各有 React Native 与 Flutter 版本)各在 iOS 与 Android 上运行,在 iPhone 17 Pro 模拟器(iOS 26.5)与 Android 模拟器(API 35,arm64)上逐项验证:点击每个 Tab、PlusButton 与它的页面、角标递增、长按、样式切换、Rive 的 Play / Stop。单元测试:iOS CYLTabBarHostViewTests(17 个:透明区域的触摸与 touchableRects、PlusButton 键与每个 context 独立、新的 PlusButton 键与顶层键、Protobuf / JSON / 文本格式中的 PlusButton、宿主视图的创建、下标、PlusButton 页面、长按、角标、图片加载、高度);Android CYLTabBarHostViewTest(14 个:另含配置的标题颜色、角标位置、透明区域);Flutter cyl_touch_regions_test.dart。透明区域在 iOS 与 Android 上都实际点击验证:区域中的点击交给下方页面,PlusButton 伸入区域的部分可以点击。React Native Android 的 debug 版通过 adb reverse tcp:8081 tcp:8081 连接 Metro;Flutter 的 PAG 与 Rive 示例另以开启 R8 的发布版验证。没有在真机上运行。 |
Six examples (basic, PAG and Rive, each in React Native and Flutter), each on iOS and Android, were checked one by one on an iPhone 17 Pro simulator (iOS 26.5) and an Android emulator (API 35, arm64): every tab, the plus button and its page, the badge counting up, long press, style switching, Rive's Play / Stop. Unit tests: iOS CYLTabBarHostViewTests (17: touches in the transparent strip and touchableRects, the plus button key and one per context, the new plus button and top-level keys, the plus button in Protobuf / JSON / text format, building the host view, indexes, the plus button's page, long press, badges, image loading, height); Android CYLTabBarHostViewTest (14: also the configured title color, the badge position, the strip); Flutter cyl_touch_regions_test.dart. The strip was tapped on iOS and Android: a tap in it reaches the page below, and the plus button's part in it can be tapped. React Native Android debug builds reach Metro through adb reverse tcp:8081 tcp:8081; the Flutter PAG and Rive demos were also checked as R8-minified release builds. Not run on a device. |
| 中文 | English |
|---|---|
TODO(2026-11-16):另一个项目报告被 CYLTabBarController 阻塞:「Flutter、React Native 与小程序的 TabBar 包还不支持 SVGA」。用户原话:「other project say Blocked on CYLTabBarController: Flutter, React Native and the mini program. Their tab bar packages don't support SVGA yet,」。React Native 与 Flutter:已支持(见上方「在 App 中使用 SVGA 图标」),缺的是接入文档,现已补上。微信小程序:确实不支持;没有维护中的小程序 SVGA 播放器(svga 2.1.1 的解析器与播放器依赖 Web Worker、XMLHttpRequest 与 DOM 画布;svgaplayer-weapp 1.0.0 无作者与仓库,2022 年后未更新),需要自己实现播放器(inflate、protobuf 解码、2D 画布绘制)并新增 cyl-svga-view 泛型与 SVGA 键,方案待用户决定。 |
TODO (2026-11-16): another project reports being blocked on CYLTabBarController: "Flutter, React Native and the mini program: their tab bar packages don't support SVGA yet". User prompt, verbatim: "other project say Blocked on CYLTabBarController: Flutter, React Native and the mini program. Their tab bar packages don't support SVGA yet,". React Native and Flutter: supported ("SVGA tab icons in your app" above); what was missing is the setup guide, now added. WeChat Mini Program: really not supported; there is no maintained SVGA player for mini programs (svga 2.1.1's parser and player need Web Workers, XMLHttpRequest and DOM canvases; svgaplayer-weapp 1.0.0 has no author or repository and no update since 2022), so it needs its own player (inflate, protobuf decoding, 2D canvas drawing) plus a cyl-svga-view generic and the SVGA keys; the approach is the user's decision. |
进展(2026-11-16):按用户选择自己实现小程序 SVGA 播放器:新包 CrossPlatform/svga-miniprogram(cyl_svga_movie.js:fflate 0.8.2 解压 + 手写 protobuf 解码 svga.proto;cyl_svga_renderer.js:位图、矢量形状、透明度、变换、裁剪路径;cyl-svga 组件:属性、事件与方法与 cyl-pag 相同)。cyl-tabbar-miniprogram:泛型 cyl-svga-view、cylSVGA() 读取 CYLTabBarSVGA… 键、.svga(.bin) 文件类型。示例:--animation=svga 安装该包与 4 个 .svga.bin 图标(代码包 1.03 MB / 2 MB),4 个 Tab 均解析为 SVGA。测试:svga-miniprogram 8 项(解码 6 个示例文件、绘制帧、路径、缩放、组件加载 / 播放 / 完成 / 错误),cyl-tabbar-miniprogram 19 项全部通过;渲染器在 Chrome 无头模式的 2D 画布上(与小程序 2D 画布 API 相同)绘制 6 个文件各 5 帧,见下图。TODO:在微信开发者工具(Windows)与真机上运行;遮罩(matteKey)与音频尚未支持。 |
Progress (2026-11-16): per the user's choice, our own SVGA player for mini programs: the new package CrossPlatform/svga-miniprogram (cyl_svga_movie.js: fflate 0.8.2 inflate + a hand-written protobuf decoder of svga.proto; cyl_svga_renderer.js: bitmaps, vector shapes, alpha, transforms, clip paths; the cyl-svga component: the properties, events and methods of cyl-pag). cyl-tabbar-miniprogram: the cyl-svga-view generic, cylSVGA() reading the CYLTabBarSVGA… keys, the .svga(.bin) file type. Example: --animation=svga installs the package and 4 .svga.bin icons (code package 1.03 MB of 2 MB); all 4 tabs resolve to SVGA. Tests: svga-miniprogram 8 (decoding the 6 example files, drawing frames, paths, fitting, the component loading / playing / completing / failing), cyl-tabbar-miniprogram 19, all passing; the renderer draws 5 frames of each of the 6 files on a 2D canvas of headless Chrome (the same 2D canvas API as the mini program's), below. TODO: run it in WeChat DevTools (Windows) and on a phone; masks (matteKey) and audio are not supported yet. |
验证(2026-11-16 12:24):CYLSearchViewController 会话在微信开发者工具 2.02.2609250(基础库 3.6.6,Windows 11)中运行其小程序示例(CYLSearchViewController fb15432):3 个 SVGA Tab 图标(tab_search、tab_list、tab_activity,.svga.bin,{30, 30})首次启动即正确绘制,选中的 Search 为文件自身的橙色,其余为灰色,CLI 无错误。尚未检查:切换 Tab 时的动画、深色文件、控制台警告。 |
Checked (2026-11-16 12:24): the CYLSearchViewController session ran its mini program example (CYLSearchViewController fb15432) in WeChat DevTools 2.02.2609250 (base library 3.6.6, Windows 11): its 3 SVGA tab icons (tab_search, tab_list, tab_activity, .svga.bin, {30, 30}) draw at first launch, the selected Search in the file's own orange, the others grey, no error through the CLI. Not checked yet: the animation while switching tabs, the dark files, console warnings. |
![]() |
![]() |
| TODO(2026-11-16):用户反馈跨端 TabBar 点按 Tab 不切换。先查 React Native(Android 模拟器上 example-rive 点按 Bell 不切换,Rive 与 SVGA 模式相同),再查 Flutter、微信小程序、HarmonyOS。用户原话:「有用户反馈说跨端平台的tabbar切换不成功,先查 RN Tab 不切换再查其他跨端平台」。 | DONE (2026-11-21, session chen-yilong-b6; was TODO, the platforms left in the rows below): HarmonyOS: on the Mate 70 Pro x86_64 emulator (HarmonyOS 6.0.1, API 21, 127.0.0.1:5557; HAP built from this branch at ec710a4a without the arm64-only Rive native libraries, which that emulator cannot load), taps found by id (cyl-tab-city, cyl-tab-message, cyl-plus-button, cyl-tab-CYLMineViewController, cyl-tab-home) each showed that page (cyl-page-<id>) and moved the selected state, in the classic, FlatDesign and Liquid Glass styles (harmonyos-tab-taps-three-styles.png); WeChat Mini Program: WeChat DevTools on Windows 11 (logged in, cli auto --auto-port 9420), UI test "a tap on a tab opens its page and selects it" passes, 14 of 15 UI tests pass (the 15th, the launch sequence, fails only after the other tests: the example's Liquid Glass check and the bar disagree; tracked in WeChat-Mini-Program), Node tests 89 / 89. Note: a run against a DevTools left on another page fails the first tests; reload with cli auto first. The owner still sees the previous tab drawn first after a tap in the mini program: new TODO in WeChat-Mini-Program. Original entry: users report that tapping a tab does not switch it on the cross-platform tab bars. First React Native (on the Android emulator, tapping Bell in example-rive does not switch, in Rive and SVGA modes alike), then Flutter, the WeChat Mini Program and HarmonyOS. User prompt, verbatim: "有用户反馈说跨端平台的tabbar切换不成功,先查 RN Tab 不切换再查其他跨端平台" (users report tab switching fails on the cross-platform tab bars; look into RN tabs not switching first, then the other cross-platform platforms). |
进展(2026-11-16 09:58):React Native iOS(iOS 26.3 模拟器)点按 Tab 正常切换;React Native Android 在另一会话的模拟器上正常切换(6ca0afa);我在 emulator-5590 上的「不切换」是主机过载(负载 11.75,后来 589)导致 System UI「无响应」对话框拦截了点按,不是组件问题。Flutter iOS(自己的 iPhone 17 Pro Max 模拟器)单次点按 Search、Chat、Bell 均切换;测试工具 axe 的默认点按样式点不到 Flutter 平台视图中的原生 TabBar,需要 --tap-style physical(真实手指不受影响)。共享的 iOS 26.3 模拟器上另一会话的 App 会切到前台,点按会落到它上面。待查:Flutter Android、微信小程序、HarmonyOS(主机负载降下来后再启动模拟器)。 |
Progress (2026-11-16 09:58): React Native iOS (iOS 26.3 simulator) switches tabs on tap; React Native Android switches on another session's emulator (6ca0afa); my "does not switch" on emulator-5590 was host overload (load average 11.75, later 589): System UI "not responding" dialogs swallowed the taps; not a component bug. Flutter iOS (my own iPhone 17 Pro Max simulator): single taps on Search, Chat and Bell switch; the axe tool's default tap style does not reach the native tab bar inside Flutter's platform view and needs --tap-style physical (real fingers are not affected). On the shared iOS 26.3 simulator another session's app comes to the front and takes the taps. To check: Flutter Android, the WeChat Mini Program and HarmonyOS (emulators once the host load drops). |
DONE(2026-11-16 10:15):真正的 Android 原因由另一会话找到并修复(1cd86c2):rive-android 的 RiveAnimationView 消费触摸,Rive 图标的 Tab 点按不选中;共享库 CYLRiveTabBarItemAnimationView.dispatchTouchEvent 返回 false,React Native 与 Flutter 的 Android 重新构建后即生效。验证(自己的 Android 15 模拟器 emulator-5590,基于 1cd86c2 构建的 Flutter example_rive):Rive 模式点按 Bell、Search 均切换;SVGA(初始化 Key、配置文件)模式点按 Chat 切换。微信小程序:用加载真实 cyl-tab-bar 组件的 Node 测试点按每个 Tab:City、Start 触发 select(页面 web、publish),Message 与 Mine 触发 loginrequired(示例要求登录,弹窗登录后切换,属设计如此);微信开发者工具未在本机运行(TODO)。HarmonyOS:本仓库尚无鸿蒙 TabBar 实现(HarmonyOS-API-Map.md 全为 TODO),无可测内容。下图从上到下:Flutter Android Rive 模式点按 Bell、Search;SVGA 两种模式;SVGA 模式点按 Chat。 |
DONE (2026-11-16 10:15): the real Android cause was found and fixed by another session (1cd86c2): rive-android's RiveAnimationView consumed touches, so taps on tabs with Rive icons did not select them; in the shared library CYLRiveTabBarItemAnimationView.dispatchTouchEvent returns false, which React Native and Flutter on Android pick up when rebuilt. Checked (my own Android 15 emulator emulator-5590, Flutter example_rive built on 1cd86c2): in Rive mode tapping Bell and Search switches; in the SVGA modes (initialization keys, configuration file) tapping Chat switches. WeChat Mini Program: a Node test that loads the real cyl-tab-bar component taps every tab: City and Start send select (pages web, publish); Message and Mine send loginrequired (the example requires login; its alert logs in, then switches, by design); WeChat DevTools not run on this machine (TODO). HarmonyOS: this repository has no HarmonyOS tab bar yet (HarmonyOS-API-Map.md is all TODO), so nothing to test. Below, top to bottom: Flutter Android in Rive mode tapping Bell, Search; the two SVGA modes; tapping Chat in SVGA mode. |
![]() |
![]() |
| 本条按用户要求使用英文(见右列)。 | DONE (2026-11-21, chenyilong-0b; not reproduced): in this repository's Flutter example (flutter_cyltabbar/example, the same component CYLSearchViewController's Flutter example uses), built at b026b0e1 with Xcode 27.2 and run on the iPhone 18 Pro iOS 27.2 simulator (Liquid Glass), the plus button's title "Post" stays visible and takes the selected color on its own page: screenshot docs/assets/flutter-plus-title-own-page-ios.png. Was: TODO (2026-11-13, iOS, Flutter tab bar in CYLSearchViewController's Flutter example): user prompt, verbatim: "在跨端相关文件中记录 记录截图中的bug,标记TODO。CYLSearchViewController 的flutter example中,出现以下异常:flutter 的tabbar 实现iOS端异常。plus button title会在被选中后 液态玻璃遮罩消失,title异常消失。两个排查方向:第一个:plus button 问题,排查方向:cyl_updateLiquidGlassMask 实现导致plusbutton的 title 字体异常。 Switch: CYL_PLUS_BUTTON_LENS_MASK_ENABLED is now 1. Your rule still stands in AGENTS.md: on any plus button bug, set it to 0 first and retest. ,通过控制上面的key 禁用该实现查看差异。如无法保证不会引发异常,继续禁用cyl_updateLiquidGlassMask该方法实现。同时寻找CYLTabBarController ,,相关commit 里面有一个more按钮存在时 home button 相关icon消失的bug。搜索docs相关文档,查看上下文。continue continue continue" Symptom (screenshot below; top to bottom, left to right: the Tag style tab selected, the plus button shows its title "Search bar"; its search page; the plus tab "Search bar" selected: the Liquid Glass lens under the plus button is gone and so is its title; the No results page): after the plus button is selected, its Liquid Glass lens disappears and its title disappears. Example: CrossPlatform/flutter_cylsearch/example on CYLSearchViewController's branch feat/swift-core (another session's worktree, not changed here); its iOS Podfile pins CYLTabBarController 74aa25e (2026-11-13, branch fix/flutter-viewpager2). Direction 1, the lens mask (-[CYLPlusButton cyl_updateLiquidGlassMask], rule in AGENTS.md: rule it out first): checked: at 74aa25e, and on feat/cross-platform-components today, CYL_PLUS_BUTTON_LENS_MASK_ENABLED is 0 (kept off since 289d928, 2026-11-12), so the mask did not run in the build of the screenshot. The note "is now 1" quoted in the prompt is out of date. Still to do: run the example once with the switch set to 1 and once with 0 and compare, to confirm; the switch stays 0 unless the mask is proven safe. Direction 2, views hidden and never shown again (context: d90802e, "Home's icon comes back after More editing → Done", Liquid-Glass-Robustness.md: UIKit never called -endCustomizingAnimated:, so the views hidden when More editing began, Home's star, stayed hidden until the end was detected by polling isCustomizing). Same pattern to look for: something hides the plus button's title or stand-in when the plus tab is selected and never restores it. Leads: with titles aligned (+alignsTitleWithTabBarItemTitles), -[CYLPlusButton cyl_layOutForTitleInTabBarItem] (CYLPlusButton.m:952, undone by -cyl_returnTitleFromTabBarItem) clears the button's own title and lets the tab item show it; on Liquid Glass, the selected layer (platter) draws the selected tab from its own copy, where the plus tab item may have no title and no stand-in; and the Flutter host (CYLTabBarHostView) may select the plus tab in a way the native demo does not (a Flutter route pushed over it). Related: the plus button title color TODO in Liquid-Glass-Robustness.md. Done when: in the Flutter example and the ObjC demo, with the plus tab selected, the lens stays under the plus button and its title stays visible, before and after a lens drag, with labeled screenshots. Status: not started. |
| 本条按用户要求使用英文(见右列)。 | DONE (2026-11-12, finished 2026-11-13): a third component, WeChat Mini Program, in CrossPlatform/wechat-miniprogram-cyltabbar, scored against the configuration keys of the iOS library: see WeChat-Mini-Program.md (task, prompt, plan, score). 2026-11-13: the package cyl-tabbar-miniprogram (component cyl-tab-bar) with Lottie tab icons through its sub-dependency cyl-lottie-miniprogram (our fork of lottie-miniprogram, all 55 upstream issues resolved), and its example, checked in WeChat DevTools with 15 screenshots: key score 100 / 100, API score 100 / 100. It is a pure mini program component (WXML / WXSS / JS), not a wrapper of CYLTabBarHostView: a mini program cannot embed native views. |
| 中文 | English |
|---|---|
DONE(2026-11-16,分支 feat/harmonyos-demo-7-flatdesign):鸿蒙演示 7(导航栏「Flat Design」切换为扁平样式 TabBar)。用户原话:「做演示 7」(与 Windows 上的鸿蒙会话分工:它负责评分表、无障碍与本地化,演示 7 归本会话)。实现:新文件 cyltabbar/src/main/ets/CYLFlatDesignTabBar.ets(CYLTabBarStyleType、CYLFlatDesignTabBarModifier:BlurStyle.COMPONENT_THICK + #BFF9F9F9、蓝 / 灰着色)、entry/src/main/ets/demo/DemoFlatDesign.ets(「Flat Design」按钮,随机颜色呼吸红点,一个无障碍元素,id cyl-nav-flat-design);CYLTabBarController.ets 只加 tabBarStyleType、barTintColor 与一行 attributeModifier;Index.ets 用新 key 重建 TabBar 并再次显示启动角标。文字使用 iOS key(FlatDesign、FlatDesign扁平设计样式),harmonyos-l10n.py 已重新生成。验证:hvigorw clean assembleHap 成功,新文件无 ArkTS 警告;未在模拟器上运行(用户要求不用模拟器),截图待做。评分:16 / 100(演示 52 / 56)。差异:扁平样式在 iOS 上页面延伸到 TabBar 下方再模糊,鸿蒙版的页面区域在 TabBar 上方结束,模糊的是 TabBar 自身背景(TODO)。 |
DONE (2026-11-16, branch feat/harmonyos-demo-7-flatdesign): HarmonyOS demo 7 (the navigation bar's "Flat Design" switches to the FlatDesign tab bar). The user's words: "做演示 7" (split with the HarmonyOS session on Windows: it owns the score table, accessibility and localization; demo 7 is this session's). Done: new cyltabbar/src/main/ets/CYLFlatDesignTabBar.ets (CYLTabBarStyleType, CYLFlatDesignTabBarModifier: BlurStyle.COMPONENT_THICK + #BFF9F9F9, blue / gray tints) and entry/src/main/ets/demo/DemoFlatDesign.ets (the "Flat Design" button with a breathing dot in a random color, one accessibility element, id cyl-nav-flat-design); CYLTabBarController.ets only gets tabBarStyleType, barTintColor and one attributeModifier line; Index.ets builds a new tab bar (new key) and shows the launch badges again. Texts use iOS keys (FlatDesign, FlatDesign扁平设计样式); harmonyos-l10n.py regenerated. Checked: hvigorw clean assembleHap succeeds, no ArkTS warning in the new files; not run on an emulator (the user asked for no emulator), screenshots to do. Score: 16 / 100 (demos 52 / 56). Difference: on iOS the pages run under the FlatDesign bar and are blurred; on HarmonyOS the pages end above the bar, which blurs its own background (TODO). |
| 中文 | English |
|---|---|
鸿蒙模拟器验证(2026-11-16 12:41,提交 f20bdff):新建专用模拟器实例 “CYL TabBar Test”(Mate 70 Pro 配置,HarmonyOS 6.0.1 API 21,127.0.0.1:5559),避免与其他会话共用。用 uitest dumpLayout -b com.cyl.tabbar.harmony 按 id 定位(cyl-nav-flat-design、cyl-nav-liquid-glass)后点按。结果:(1) 首页导航栏位于状态栏下方 ✅;(2) 「液态玻璃」不再压住「首页」标题 ✅;(3) 点「扁平样式」0.5 秒后 TabBar 已重建(角标与封面清空,1.5 秒后重新出现)✅;(4) 点「液态玻璃」出现悬浮胶囊,但胶囊位置过低,与系统手势条重叠、标题被遮挡,左侧没有边距(TODO)。截图 1:启动后首页;截图 2(从左到右):点扁平样式后 0.5 秒、点液态玻璃后立即、3 秒后。 |
HarmonyOS emulator check (2026-11-16 12:41, commit f20bdff): a dedicated emulator instance "CYL TabBar Test" (Mate 70 Pro profile, HarmonyOS 6.0.1 API 21, 127.0.0.1:5559) so no other session shares it. Controls found by id with uitest dumpLayout -b com.cyl.tabbar.harmony (cyl-nav-flat-design, cyl-nav-liquid-glass), then tapped. Results: (1) the Home navigation bar is below the status bar ✅; (2) "液态玻璃" no longer overlaps the "首页" title ✅; (3) 0.5 s after a tap on "扁平样式" the tab bar is rebuilt (badges and cover cleared, back after 1.5 s) ✅; (4) a tap on "液态玻璃" shows the floating capsule, but it sits too low, over the system gesture bar with its titles hidden, and has no left margin (TODO). Picture 1: Home after launch; picture 2 (left to right): 0.5 s after FlatDesign, right after Liquid Glass, 3 s later. |
| 中文 | English |
|---|---|
复查(2026-11-16 12:45,提交 6befe36,同一模拟器):液态玻璃胶囊已位于手势条上方,标题可见 ✅;但左右两侧仍没有 16 vp 间距,胶囊几乎占满屏宽(TODO)。经典与扁平样式的 TabBar 背景与页面颜色接近,无法从截图判断是否延伸到手势条下方(待用深色主题复查)。从左到右:经典、扁平样式、液态玻璃。 |
Re-check (2026-11-16 12:45, commit 6befe36, same emulator): the Liquid Glass capsule now sits above the gesture bar with its titles visible ✅; but there is still no 16 vp gap on the left and right, the capsule spans almost the full width (TODO). The classic and FlatDesign bars are too close in color to the page to tell from the picture whether they reach under the gesture bar (to re-check with a dark skin). Left to right: classic, FlatDesign, Liquid Glass. |
| 中文 | English |
|---|---|
复查(2026-11-16 12:48,提交 b7995d0,同一模拟器):液态玻璃胶囊左右间距相等,均为 56 px(16 vp),底部 28 px(8 vp),由 uitest dumpLayout 的 cyl-tab-bar 边界测得 ✅。“海洋”皮肤(深色 TabBar)下:(1) 经典样式 TabBar 没有延伸到手势条下方,深蓝色 TabBar 下面露出一条白色(TODO,expandSafeArea 移到外层 Column 后,Column 没有背景色);(2) 扁平样式 TabBar 没有使用皮肤的 TabBar 颜色,仍为浅色模糊(TODO,barTintColor 未传入皮肤颜色;iOS 皮肤适用于所有样式)。从左到右:海洋皮肤经典样式、海洋皮肤扁平样式、液态玻璃(默认皮肤)。 |
Re-check (2026-11-16 12:48, commit b7995d0, same emulator): the Liquid Glass capsule has equal 56 px (16 vp) gaps left and right and 28 px (8 vp) at the bottom, measured from the cyl-tab-bar bounds in uitest dumpLayout ✅. With the "Ocean" skin (a dark bar): (1) the classic bar does not reach under the gesture bar, a white strip shows below the dark blue bar (TODO: expandSafeArea moved to the outer Column, which has no background); (2) the FlatDesign bar ignores the skin's bar color and stays a light blur (TODO: barTintColor does not get the skin color; on iOS skins apply to every style). Left to right: Ocean classic, Ocean FlatDesign, Liquid Glass (default skin). |
| 中文 | English |
|---|---|
复查(2026-11-16 12:52,提交 981db1e,“太空”皮肤):经典样式的深色延伸到手势条下方 ✅;液态玻璃胶囊使用皮肤的深色着色,左右间距相等 ✅;扁平样式两种颜色(TODO):TabBar 本身为浅灰紫色,下方手势条区域为深蓝色。推测外层容器已使用 barTintColor,而 TabBar 行的模糊仍显示浅色(CYLFlatDesignTabBarModifier 收到的颜色与容器不同,或深色在 COMPONENT_THICK 模糊上被冲淡)。从左到右:经典、扁平样式、液态玻璃。 |
Re-check (2026-11-16 12:52, commit 981db1e, "Space" skin): the classic bar's dark color reaches under the gesture bar ✅; the Liquid Glass capsule takes the skin's dark tint with equal side gaps ✅; FlatDesign is two-tone (TODO): the bar itself is a light gray-purple while the gesture bar area below it is dark blue. Likely the outer container uses barTintColor while the bar row's blur still shows light (CYLFlatDesignTabBarModifier gets a different color than the container, or the dark tint is washed out by the COMPONENT_THICK blur). Left to right: classic, FlatDesign, Liquid Glass. |
| DONE(2026-11-16,分支 feat/harmonyos-flatdesign-api):扁平样式接口与皮肤着色修复。用户原话:「做扁平样式接口」。(1) CYLFlatDesignTabBar.ets 新增 CYLFlatDesignTabBarItem(CYLTabBarItemAttributes 的类型别名)、cyl_flatDesignTabBarItem、cyl_flatDesignTabBarItemWithOffset、cyl_flatDesignHasPlusButton、cyl_flatDesignHasPlusChildViewController;CYLFlatDesignTabBarModifier 支持 backgroundImage(平铺,代替模糊;控制器属性尚未接入:CYLTabBarController.ets 正由 SVGA 工作修改,TODO)。(2) 接口表 38 行:24 行映射到已实现的鸿蒙接口,13 行标为 “TODO: N/A on HarmonyOS” 并写明原因(ArkUI 声明式,没有按钮 / 标签对象;状态响应式,无需变更通知;没有视图控制器与反向引用),1 行部分完成。评分:API 15 / 100,两表合并 18 / 100。(3) 修复:皮肤设置 barTintColor 时,扁平样式 TabBar 不再叠加浅色模糊材质,与手势条下方区域颜色一致。验证:hvigorw clean assembleHap 成功;模拟器 “CYL TabBar Test”(Mate 70 Pro,API 21)上,左:太空皮肤扁平样式整条深色 ✅;右:默认皮肤扁平样式浅色连续 ✅。仍为 TODO:CYLFlatDesignTabBarItem 的 enabled、imagePositionAdjustment、layoutCentered、文字属性、角标尺寸与偏移、imageInsets、lottieURL、useLayoutSafeAreaInsets、respectsVerticalStatusBarSafeArea、shadowImage 与 appearance,需要改控制器。 | DONE (2026-11-16, branch feat/harmonyos-flatdesign-api): FlatDesign APIs and the skin tint fix. The user's words: "做扁平样式接口". (1) CYLFlatDesignTabBar.ets adds CYLFlatDesignTabBarItem (a type alias of CYLTabBarItemAttributes), cyl_flatDesignTabBarItem, cyl_flatDesignTabBarItemWithOffset, cyl_flatDesignHasPlusButton, cyl_flatDesignHasPlusChildViewController; CYLFlatDesignTabBarModifier takes a backgroundImage (tiled, in place of the blur; the controller property is not wired yet because CYLTabBarController.ets is being changed by the SVGA work, TODO). (2) 38 API rows: 24 mapped to implemented HarmonyOS APIs, 13 marked "TODO: N/A on HarmonyOS" with a reason (ArkUI is declarative, no button / label objects; state is reactive, no change notification; no view controllers or back references), 1 partial. Score: APIs 15 / 100, both tables 18 / 100. (3) Fix: with a skin's barTintColor, the FlatDesign bar no longer lays the light blur material over it, so it matches the strip under the gesture bar. Checked: hvigorw clean assembleHap succeeds; on emulator "CYL TabBar Test" (Mate 70 Pro, API 21), left: Space skin FlatDesign, one dark color ✅; right: default skin FlatDesign, light and continuous ✅. Still TODO (they need controller changes): CYLFlatDesignTabBarItem enabled, imagePositionAdjustment, layoutCentered, text attributes, badge size and offsets, imageInsets, lottieURL, useLayoutSafeAreaInsets, respectsVerticalStatusBarSafeArea, shadowImage and the appearance. |
| 中文 | English |
|---|---|
DONE(2026-11-16,分支 feat/harmonyos-flatdesign-item,基于 SVGA 分支 feat/harmonyos-svga 与最新 feat/harmonyos-component):扁平样式剩余接口。用户原话:「continue」(接着做扁平样式接口)。新增 Tab 属性 enabled(false 时变暗、不响应点击,读屏读出「不可用」)、imagePositionAdjustment、imageInsets(CYLTabBarItemImageInsets)、layoutCentered(只有标题时居中);控制器新增 barBackgroundImage(扁平样式平铺背景图)与 shadowImage(顶部线条图片)。新文案 Dimmed 写入 scripts/harmonyos-l10n.json(en、zh-Hans)。合并 SVGA 分支时 harmonyos-api-map.json 冲突,按原顺序取两边并集。验证:hvigorw clean assembleHap 成功;模拟器 “CYL TabBar Test” 上首页与 TabBar 正常,Tab 的无障碍描述不变(cyl-tab-home 读作「标签,第 1 个,共 4 个,选中」);首次启动因主机负载 240 出现 LIFECYCLE_TIMEOUT,第二次启动正常。新属性暂无演示行(示例 Index.ets 由 Windows 会话维护),仅编译验证。评分 19 / 100。仍为 TODO:useLayoutSafeAreaInsets、lottieURL。 |
DONE (2026-11-16, branch feat/harmonyos-flatdesign-item, on the SVGA branch feat/harmonyos-svga plus the latest feat/harmonyos-component): the remaining FlatDesign APIs. The user's words: "continue" (the FlatDesign API rows). New tab attributes enabled (false: dimmed, taps ignored, the screen reader says "Dimmed"), imagePositionAdjustment, imageInsets (CYLTabBarItemImageInsets), layoutCentered (a lone title is centered); the controller gets barBackgroundImage (FlatDesign tiled background) and shadowImage (top line image). The new text Dimmed is in scripts/harmonyos-l10n.json (en, zh-Hans). Merging the SVGA branch conflicted in harmonyos-api-map.json; resolved as the union of both sides in the original order. Checked: hvigorw clean assembleHap succeeds; on emulator "CYL TabBar Test" Home and the tab bar are fine and the tabs' accessibility descriptions are unchanged (cyl-tab-home reads "标签,第 1 个,共 4 个,选中"); the first launch hit LIFECYCLE_TIMEOUT at host load 240, the second launched fine. The new attributes have no demo row yet (the example Index.ets is the Windows session's), so they are build-checked only. Score 19 / 100. Still TODO: useLayoutSafeAreaInsets, lottieURL. |
TODO,鸿蒙、Android 与小程序已完成(2026-11-19,默认 TabBar 高度 = 系统 TabBar 高度,所有平台;2026-11-22 小程序:未设置 tabBarHeight 时为微信原生 tabBar 的 48 px;2026-11-22 鸿蒙:未设置 tabBarHeight 时为 CYLTabBarDefaultHeight = 56 vp,与系统 Tabs 等高;Android:从主题读取系统 BottomNavigationView 高度(Material 3 为 80 dp,Material 2 为 56 dp),2026-12-01 起改为固定 64 dp(CYLDefaultTabBarHeight,API 37 系统应用实测,负责人决定),本行中的 Android 80 / 56 dp 为历史记录;均有测试与截图;小程序待做):由 CollectionViewClassifyMenu 会话转达的用户请求,原话:「对比两个:cyltabbar与系统tabbar高度差异,如有必要在cyltabbar中的core代码实现。用户如果没有自定义,那么默认高度为系统tabbar高度。该默认行为适用于所有平台」。已知:iOS 使用 UITabBar(系统高度,液态玻璃待确认);Android 核心 CYLConstants.CYLTabBarHeight = 49f(dp,复用 iOS 的 49 pt),Material 3 导航栏为 80 dp(对方实测相差 31 dp);鸿蒙 @Prop tabBarHeight: number = 49(vp),系统 Tabs 默认 56 vp;小程序 CYL_BAR_HEIGHT = 50(px);RN / Flutter 继承原生。评分:100 = 每个平台未设置高度时与系统 TabBar 等高(Android、鸿蒙、小程序核心修改,iOS 与 RN / Flutter 确认),自定义高度与配置文件仍然优先,有测试与带标注的截图;60 = Android 与鸿蒙核心修改并验证。 |
TODO (2026-11-19, default tab bar height = the system tab bar's, every platform; since 2026-12-01 Android uses a fixed 64 dp, CYLDefaultTabBarHeight, measured on the API 37 system apps by the owner's decision, so the Android 80 / 56 dp in this row is history): user request relayed by the CollectionViewClassifyMenu session, verbatim: "对比两个:cyltabbar与系统tabbar高度差异,如有必要在cyltabbar中的core代码实现。用户如果没有自定义,那么默认高度为系统tabbar高度。该默认行为适用于所有平台" (EN: compare the CYL tab bar and system tab bar heights; if needed implement it in the core; when the user sets nothing, the default height is the system tab bar's; on every platform). Known: iOS uses UITabBar (system height; Liquid Glass to confirm); Android's core CYLConstants.CYLTabBarHeight = 49f (dp, the iOS 49 pt reused) against 80 dp for the Material 3 navigation bar (31 dp measured by that session); HarmonyOS @Prop tabBarHeight: number = 49 (vp) against 56 vp for the system Tabs bar; mini program CYL_BAR_HEIGHT = 50 (px); React Native and Flutter inherit the native bars. Score: 100 = with no height set, every platform matches its system tab bar (core changes on Android, HarmonyOS and the mini program; iOS and React Native / Flutter confirmed), custom heights and configuration files still win, with tests and labeled screenshots; 60 = Android and HarmonyOS changed in the core and verified. HarmonyOS DONE (2026-11-22, session chen-yilong-b6, user prompt verbatim: "continue HarmonyOS default tab bar height parity"): new CYLTabBarDefaultHeight = 56 vp in cyltabbar/src/main/ets/CYLConstants.ets (exported), the default of CYLTabBarController.tabBarHeight (was 49), cyl_plusButtonOverhang and cyl_liquidGlassContentDy; a tabBarHeight the app passes still wins; the example's height row toggles the default and 69. Measured on the x86_64 emulator (HarmonyOS 6.0.1, density 3.5): the ArkUI Tabs bottom bar is 196 px = 56 vp (hypium CYLTabBarHeight.test.ets, which measures a real system bar on the device and fails if CYLTabBarDefaultHeight drifts from it; suite 8 / 8), and the CYLTabBarController bar without tabBarHeight is now 196 px (layout dump, was 172 px = 49 vp) (sheet). Android DONE (2026-11-22, user prompt verbatim: "continue Android default tab bar height parity then"): new CYLConstants.cyl_systemTabBarHeight(Context) (Java, public): the android:minHeight of the theme's bottomNavigationStyle (Material 3: 80 dp), else Material 2's design_bottom_navigation_height (56 dp), else 80 dp for an app without the Material library (looked up by name: the library still does not depend on Material); constants CYLSystemTabBarHeightMaterial3 / CYLSystemTabBarHeightMaterial2. CYLTabBarController.tabBarHeight defaults to it (was CYLConstants.CYLTabBarHeight, 49, which stays as the iOS value), and so does CYLTabBar without a controller; a value the app sets wins; React Native and Flutter on Android inherit it through the host view. The example's plus button keeps the raised look by fixing its center 14.7 dp below the bar top (DemoPlusButton.Provider). Tests: new Robolectric CYLSystemTabBarHeightTest (Material 3: 80, Material 2: 56, each equal to a real BottomNavigationView measured in the same theme; test-only Material dependency, lock state updated without changing any published classpath); every Android module's unit tests pass (testDebugUnitTest, 232 in :cyltabbar + :cylanimateditem, 0 failures). Emulator (Android 17, API 37, 420 dpi): the example's bar is 80 dp (tabBarHeight = 80.0), the same as the Material 3 BottomNavigationView of "Compare with the system tab bar" (both 2127-2337 px) (sheet). Mini program DONE (2026-11-22, user prompt verbatim: "continue mini program default tab bar height parity then"): the WeChat native tabBar is 48 px, measured in WeChat DevTools 3.17.6 (iPhone 12/13 Pro) with a probe mini program that has a native tabBar: a full-height view is 753 px on a page without the tabBar and 671 px with it (82 px = 48 + the 34 px safe area). cyl-tab-bar now defaults to 48 px (CYL_BAR_HEIGHT, was 50) and has a new property tabBarHeight (px; 0 or less: the default) that the app can set; the stylesheet reads it through --cyl-bar-height, and the plus button layout uses the same height; Liquid Glass keeps its 62 px capsule. Tests: test/cyl_tab_bar_height.test.js (default 48 px, 0 and negative fall back, 64 wins, Liquid Glass untouched), npm test 96 / 96. DevTools (the example with the component from src, classic style): tabs 48 px, bar 83 px = 48 + 34 safe area + the 1 px hairline (selector query). No screenshot sheet: the DevTools simulator was zoomed out (149 px wide captures), too small for a labeled sheet; the numbers above are the evidence. Still TODO: the same check on a real WeChat client (iOS and Android may differ from DevTools), and confirming iOS (Liquid Glass) and React Native / Flutter on iOS (a Mac session). Score of this row: 80 / 100 (Android, HarmonyOS and the mini program; iOS and the cross-platform confirmation missing). iOS checked (2026-11-24, chenyilong-d9): with no tabBarHeight set, CYLTabBarController is as tall as the system UITabBar, in both styles. Unit tests CYLDefaultTabBarHeightTests (CYLTabBarControllerTests/CYLDefaultTabBarHeightTests.swift: testTheDefaultTabBarIsAsTallAsTheSystemTabBar, testACustomTabBarHeightStillWins), 3 plain pages in a 390 x 844 pt window against a plain UITabBarController: Liquid Glass (iOS 27.2, iPhone 18 Pro simulator, Xcode 27.2): system 83.0 pt, CYL 83.0 pt (49 pt bar + 34 pt bottom safe area); classic (iOS 17.5, iPhone 15 Pro simulator): system 75.0 pt, CYL 75.0 pt; both pass, 2 / 2 on each, fresh derived data. A custom tabBarHeight = 80 wins in the classic style (bar 106.0 pt = 80 + 26 pt safe area, property 80.0) and is deliberately not applied to the Liquid Glass bar, which floats and is not resized by the library (CYLTabBarController+CYLLayout.swift: guard !isLiquidGlassActive; the property reads 80.0, the bar stays 83.0 pt, the same as the system). Note: the library's fallback cylDefaultTabBarHeight is the constant 49 (the iPhone bar content height), not a value read from the system; the equality holds on the iPhones tested and was not checked on iPad or in landscape. Screenshot (Objective-C Example, iOS 27.2 Liquid Glass, original pixels): sheet; the example has a raised plus button and does not set a height. React Native and Flutter on iOS: not checked (they wrap the native host view and should inherit this bar, unverified). Score of this row: 90 / 100 (Android, HarmonyOS, mini program and iOS; React Native / Flutter on iOS unchecked). iOS cross-platform checked (2026-11-24, chenyilong-d9): Flutter and React Native on iOS inherit the system height. iPhone 18 Pro simulator, iOS 27.2 Liquid Glass, axe describe-ui frame of the Tab Bar group (y 791 to 874 in a 402 x 874 pt screen): Flutter example 83 pt, Flutter PAG example 83 pt, Flutter Rive example 83 pt, React Native example (Release) 83 pt, each equal to the 83.0 pt of a system UITabBar (CYLDefaultTabBarHeightTests) (sheet). Found on the way and fixed in the core: the React Native iOS example did not build since the Swift migration of CYLAnimatedItemResourceBundle(), because Swift exports it as noexcept in C++ and the prototype in CYLAnimatedItemMacros.h did not, so every Objective-C++ file (CyltabbarView.mm, CyltabbarAnimationView.mm) failed with "exception specification in declaration does not match previous declaration"; the prototype now carries noexcept in C++ (CYL_ANIMATEDITEM_NOEXCEPT), and the RN example builds in Release (the rebuild after the fix reused the derived data of the failed build; Xcode recompiled the pods that include the header). Not checked: iPad and landscape. Score of this row: 95 / 100. |
DONE(2026-11-19,100 / 100;原为 TODO)(iOS React Native:点按 Tab 后 JS 页面不切换,Mac 会话):原因是迁移第 63 步的回归,已在核心修复(3ddb2868),CYLSearchViewController 会话在其 React Native 示例中用真实点按验证(见右列截图)。原始记录:CYLSearchViewController 会话报告(在其 React Native 示例中,iOS 27.2 模拟器 iPhone 18 Pro,Release 构建):用 axe 按辅助功能标签或坐标点按 CYLTabBar 的 Tab,Tab 高亮但 JS 页面不切换;示例在 onTabSelect(react-native-cyltabbar CyltabbarView.mm 的 emitTabSelectAtIndex)中切换页面,看起来该事件没有发出或没有送达。CYLTabBarController 9a4ad95e 与 5744917d 相同,因此不是 Swift CYLTabBar 引起的回归。复现:CYLSearchViewController feat/harmonyos-parity,CrossPlatform/react-native-cylsearch/example,Release 构建,启动后点按 “Tag style”:标题仍是 “List style”。待查:CYLTabBarHostView 的 -tabBarController:didSelectControl: 上报的是 controller.selectedViewController,若上报早于 UIKit 修改选中状态则得到旧下标;也可能只是模拟器点按的问题。评分:100 = 找到原因并在核心(host view)修复、单元测试覆盖选中回调、真实点按截图;60 = 原因找到并有测试。 |
TODO (2026-11-19, iOS React Native: the JS page does not switch after a tab tap; Mac session): reported by the CYLSearchViewController session (its React Native example, iOS 27.2 simulator iPhone 18 Pro, Release build): tapping a CYLTabBar tab with axe, by accessibility label or by point, highlights the tab but the JS page does not switch; the example switches pages in onTabSelect (react-native-cyltabbar CyltabbarView.mm emitTabSelectAtIndex), so the event seems not emitted or not delivered. Same at CYLTabBarController 9a4ad95e and 5744917d, so not a regression of the Swift CYLTabBar. Repro: CYLSearchViewController feat/harmonyos-parity, CrossPlatform/react-native-cylsearch/example, Release build, launch, tap "Tag style": the title stays "List style". To check: CYLTabBarHostView's -tabBarController:didSelectControl: reports controller.selectedViewController, so a report sent before UIKit changes the selection carries the old index; or it is specific to simulator taps. Score: 100 = cause found and fixed in the core (the host view), a unit test of the selection callback, a real-tap screenshot; 60 = cause found, with a test. Result (2026-11-19, score 80): the cause was a regression of Swift migration step 63 (8aa2f5d7), not the host view: -cyl_sendDidSelectControl: reached the delegate through delegate as? CYLTabBarControllerDelegate, nil for a delegate that implements the methods without adopting the protocol, as CYLTabBarHostView does; so -tabBarController:didSelectControl: never reached it and onTabSelect was never emitted. Fixed in the core (3ddb2868): all nine such casts go through cylDelegate (the delegate seen as the protocol; every method is optional, so each call checks respondsToSelector: at run time, as the Objective-C code did). New unit test testATapAsUIKitRunsItReportsTheTappedTab (a tap in UIKit's order: should-select, selection, didSelectViewController) failed before (no report) and passes; 196 unit tests, 0 failures. Verified (100 / 100) by the CYLSearchViewController session with a real tap: in its React Native example (Release, iPhone 18 Pro iOS 27.2 simulator, the vendor copy of CYLTabBarController at 74f0b4cd, which contains 3ddb2868), an axe tap on "Tag style" selects the tab and the JavaScript page switches from "List style" to "Tag style"; at 9a4ad95e and 5744917d it stayed on "List style". Label: iOS 27.2, iPhone 18 Pro simulator, macOS 27.3, Xcode 27.2 (27B52), CYLSearchViewController 8989d69 React Native example (Release), CYLTabBarController 74f0b4cd (3ddb2868), feat/cross-platform-components, 2026-11-19. Purpose: a tab tap switches the React Native page. |
| 本条按用户要求使用英文(见右列)。 | TODO (2026-11-24, session chenyilong-d9, branch feat/cross-platform-components): all-platform API score to 100. User prompt, verbatim: "advisor点评目前全平台接口实现得分 以及下一步计划与建议。并立即让默认模型sonnet按照建议去实现。将得分优化到100转发合适任务给其他session 直接使用本机环境进行测试,iOS在macos机器,其余在windows机器。转发任务给相应session无需等待ci结果。" (EN: have the advisor review the current API implementation score of every platform and give the next plan and advice; have the default model (Sonnet) implement it right away; raise the score to 100; forward suitable tasks to the other sessions, testing on local machines: iOS on the macOS machine, the rest on the Windows machine; do not wait for CI before forwarding). Baseline (clean worktree at f4d892c9): iOS Swift migration 100 / 100; Android API map says 100 / 100 but android-api-map.py --check fails (tabBarItemAnimationLoops and -cyl_playAllTabBarItemAnimations are no longer found as public iOS symbols, document stale); HarmonyOS API 58 / 100 (902 of 1552), both tables 59 / 100, verified rate 1 / 100 (23 of 1608), and harmonyos-api-map.py --check / harmonyos-parity.py --check crash (UIControl+CYLTabBarItemAnimationPlayer.h moved to Swift in 73d352d5); WeChat Mini Program keys 100, API 100; React Native / Flutter wrap the native host views (no own score). Plan (advisor): (1) fix both scorers so --check passes (header moved to Swift: fall back to the frozen scripts/ios-public-api.json), regenerate the documents; (2) HarmonyOS: classify iOS-only symbols as n/a with per-symbol reasons matching the Android rule, then port the rest in batches by header (Windows session); (3) iOS rows (default tab bar height on Liquid Glass and RN / Flutter iOS, Flutter VoiceOver, PAG / Rive Flutter) for a Mac session. Rubric: 100 = every scorer's --check passes, Android 100, HarmonyOS API 100 and verified rate 100, mini program 100, iOS rows verified with labeled screenshots; 60 = scorers fixed and green, Android 100 confirmed, HarmonyOS remaining work split into forwarded batches. Progress (2026-11-24, score 60 / 100): 8cbb3c7c all three --check pass again (comment_of reads the frozen scripts/ios-public-api.json when a header moved to Swift; tabBarItemAnimationLoops and -cyl_playAllTabBarItemAnimations added to the frozen list; HarmonyOS demo row 17 got its status); a3a33470 194 of the 203 HarmonyOS rows that Android also marks n/a reviewed as n/a (each keeps its reason). Scores now: Android 99 / 100 (1463 symbols; 8 planned: CYLPlusButtonCurrentWidth() and the 7 CYLTabBarItemAnimationEngine symbols, the class the engine migration is adding); HarmonyOS API 69 / 100 (1096 of 1579), both tables 70 / 100, verified rate 13 / 100 (217 of 1635). Forwarding: no Win* session was active; the Mac session "Mac-CYLTabBarController 小程序开发" declined the iOS rows (busy with PR #824 / #823). Missing points (TODO): (1) Android: port CYLPlusButtonCurrentWidth() and CYLTabBarItemAnimationEngine (after the iOS engine migration lands), Windows session; (2) HarmonyOS: 9 rows kept TODO with a real ArkUI counterpart (cyl_isForceLandscape / -cyl_forceUpdateInterfaceOrientation: → window.setPreferredOrientation; +cyl_topmostViewController / +cyl_dismissAll: → router; +cyl_assetImageName:userInterfaceStyle:, +cyl_getImageFromImageInfo:, cyl_darkImageNameSuffix → dark resources; -cyl_takeSnapshot / -cyl_takeSnapshotWithoutViews: → componentSnapshot.get), Windows session; (3) HarmonyOS: 308 more proposed n/a rows (Android does not mark them n/a) to review one by one, and about 230 plain TODO rows to port, by header (CYLTabBarController.h 97, CYLAnimatedItemView.swift 44, CYLPlusButton.h 4 …), Windows session; (4) HarmonyOS verified rate: emulator checks of the "built; emulator check pending" rows, Windows session; (5) iOS rows (default tab bar height on Liquid Glass and RN / Flutter iOS; Flutter VoiceOver and PAG / Rive examples), a free Mac session. Progress 2 (2026-11-24, score 75 / 100): 9c13b434 the remaining 309 proposed HarmonyOS n/a rows reviewed (each keeps its specific reason: private categories, view controllers, UIKit introspection, React Native / Flutter host view), 8 kept as TODO with an ArkUI counterpart (animation stop / last frame / progress through CYLAnimatedItemController, content mode → Image.objectFit, -shouldUnloadViewOfViewController: → freezeWhenInactive); 7fd50b5d iOS default tab bar height = UITabBar (CYLDefaultTabBarHeightTests: Liquid Glass 83 = 83 pt on iOS 27.2, classic 75 = 75 pt on iOS 17.5), height row now 90. Scores now: Android 99 / 100; HarmonyOS API 84 / 100 (1336 of 1579), both tables 85 / 100, verified rate 27 / 100 (457 of 1635). Still TODO: items (1) Android 8 symbols, (2)+(3) HarmonyOS 17 rows with an ArkUI counterpart plus the plain TODO rows (243 not implemented in all), (4) HarmonyOS emulator checks (Windows session; none active today), (5) React Native / Flutter on iOS height, Flutter VoiceOver, PAG / Rive Flutter examples (Mac). Progress 3 (2026-11-24/25, score 80 / 100): ca560f09 + 21b239ce Flutter, Flutter PAG, Flutter Rive and React Native bars are 83 pt on iOS 27.2 (= UITabBar), axe taps select every tab in the PAG and Rive Flutter examples; core fix: CYLAnimatedItemResourceBundle() is noexcept in C++ (the React Native iOS example did not build); height row 95, Flutter taps row 98. Mac hand-off item 2 (iOS configuration localization) done in dc2200cb (186 checks, CYLResourceRouteTests 5 / 5, en / zh-Hans / ja sheet; row 100). Still TODO: Android 8 symbols and HarmonyOS 243 rows plus emulator checks (Windows); Flutter VoiceOver double tap and iPad / landscape heights (real device). |























