| 中文 | English |
|---|---|
Example-SwiftUI-Rive 的 UIKit 版本:没有 SwiftUI App,SceneDelegate 直接把 CYLTabBarController 设为 window 的根控制器(RiveApp/SceneDelegate.swift),Tab 的图标是课程 icons.riv 中的 Rive 画板,中间是一个 PlusButton(RiveApp/RivePlusButton.swift,标题 "Start",页面是课程的引导页,占用 Timer Tab 的位置,因为 iPhone 的 TabBar 最多显示 5 项)。CocoaPods 集成:pod 'CYLTabBarController/Rive',同时引入 RiveRuntime。 |
The UIKit version of Example-SwiftUI-Rive: no SwiftUI App; SceneDelegate makes a CYLTabBarController the window's root view controller (RiveApp/SceneDelegate.swift), the tab icons are Rive artboards of the course's icons.riv, with a plus button in the middle (RiveApp/RivePlusButton.swift, titled "Start", whose page is the course's onboarding; it takes the Timer tab's place, as an iPhone tab bar shows at most 5 items). Integrated with CocoaPods: pod 'CYLTabBarController/Rive', which also brings RiveRuntime. |
只有 RiveApp/ 中的文件是本示例自己的;Tab 的定义与 Rive 属性(TabItems.swift)、课程页面、.riv 文件、字体与图片都直接引用 ../Example-SwiftUI-Rive/AnimatedApp,不复制。各 Tab:首页(HomeView)、侧边菜单(Rive 图标)、引导页(PlusButton 的页面:Rive 按钮与背景,打开登录页)、UIKit 测试列表(所有 Swift Demo 共用的 CYLSettingsDemoTableViewController,上方的 RiveMenuButtonDemoView 用 CYLTabBarItemAnimationFactory 在 UIKit 中播放 menu_button.riv)、登录页(Rive 结果与彩带)。 |
Only the files in RiveApp/ are this demo's own; the tab definitions and Rive attributes (TabItems.swift), the course's screens, .riv files, fonts and images are referenced from ../Example-SwiftUI-Rive/AnimatedApp, not copied. The tabs: home (HomeView), the side menu (Rive icons), onboarding (the plus button's page: Rive button and background, opening sign-in), the UIKit test list (CYLSettingsDemoTableViewController, shared by every Swift demo, with RiveMenuButtonDemoView above it playing menu_button.riv in UIKit through CYLTabBarItemAnimationFactory), and sign-in (Rive result and confetti). |
SVGA(issue #415):Bell Tab 的 Rive 演示之后是 SVGATabIconDemoView,用同一个 CYLTabBarItemAnimationFactory 播放 SVGA 文件;其中的「Tab 图标来源」按钮把所有 Tab 图标切换为 Rive、SVGA(初始化 Key)或 SVGA(配置文件 RiveApp/SVGA/cyl_tabbar_configuration_svga.json)。代码(SVGATabIcons.swift)与 SVGA 文件(SVGAAssets/,Apache 2.0)与 TabItems.swift 一样引用自 Example-SwiftUI-Rive;Podfile 同时引入 pod 'CYLTabBarController/SVGA'。见 docs/SVGA-Animation.md。 |
SVGA (issue #415): after the Rive demo on the Bell tab, SVGATabIconDemoView plays SVGA files through the same CYLTabBarItemAnimationFactory; its "Tab icon source" button switches every tab icon to Rive, SVGA (initialization keys) or SVGA (the configuration file RiveApp/SVGA/cyl_tabbar_configuration_svga.json). The code (SVGATabIcons.swift) and the SVGA files (SVGAAssets/, Apache 2.0) come from Example-SwiftUI-Rive, like TabItems.swift; the Podfile also brings pod 'CYLTabBarController/SVGA'. See docs/SVGA-Animation.md. |
运行:在本目录执行 pod install,打开 RiveApp.xcworkspace(需要 iOS 15.0+)。说明见 docs/Rive-Animation.md。课程内容的来源与许可见 Example-SwiftUI-Rive/README.md。 |
To run: pod install in this folder, then open RiveApp.xcworkspace (iOS 15.0+). See docs/Rive-Animation.md. For the source and license of the course's content, see Example-SwiftUI-Rive/README.md. |
引擎 API 页:User Tab 导航栏的「Engine API」按钮打开 AnimatedItemEngineAPIViewController,三个 drivesAnimationPlayback = false 的 CYLAnimatedItemView(Rive、SVGA)由宿主驱动:全部播放、停在 50%、倍速滑块、循环开关,并显示 animationRestartToken 与 onAnimationEnd。 |
Engine API page: the "Engine API" button in the User tab's navigation bar opens AnimatedItemEngineAPIViewController: three CYLAnimatedItemViews (Rive, SVGA) with drivesAnimationPlayback = false, driven by the host: Play all, Stop at 50%, a speed slider and a loop switch, with animationRestartToken and onAnimationEnd shown. See docs/Animated-Item.md. |
着色页:Search Tab 导航栏的「Tint」按钮打开 AnimatedItemTintViewController:animationTint / animationDarkTint 作用于 Rive 条目(menu_button.riv)与 Lottie 条目,各有常态与选中,以及液态玻璃的 itemContentHorizontalInset。启动参数 -cylScreen tint、-cylColorMode dark|light、-cylScroll bottom。 |
Tint page: the "Tint" button in the Search tab's navigation bar opens AnimatedItemTintViewController: animationTint / animationDarkTint on a Rive item (menu_button.riv) and a Lottie item, normal and selected, plus the Liquid Glass itemContentHorizontalInset. Launch arguments -cylScreen tint, -cylColorMode dark|light, -cylScroll bottom. See docs/Animated-Item.md. |
Repository navigation
Example-Rive
Directory actions
More options
Directory actions
More options
Example-Rive
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||