爱意满满的作品展示区。
melovto

基于 Rust + Skia 的渲染库 SwiftUI 移植 - swiftui-skia 更新啦 🎉 (0.0.3)

  •  1
     
  •   melovto · Jul 21, 2024 · 2255 views
    This topic created in 690 days ago, the information mentioned may be changed or developed.

    新支持 SwiftUISkia.Image 并且支持 blur grayscale brighten invert 等滤镜相关属性

    image

    不过目前 swiftui-skia 仍然是一个实验项目,因为多平台编译的原因推荐通过 Rust workspace install 再进行 Swift Add Package Dependency 使用。

    Repo: https://github.com/rustq/swiftui-skia

    3 replies    2024-07-23 09:25:33 +08:00
    DjvuLee
        1
    DjvuLee  
       Jul 22, 2024
    想法挺有意思的,不过这个的收益是什么了呢?如果是基于 SwiftUI ,那基于 Apple 的原生引擎应该更好了。
    melovto
        2
    melovto  
    OP
       Jul 22, 2024 via iPhone
    @DjvuLee 软光栅主要优势就是跨平台适应性更好 不过其实目前只是个是实验项目 都是移植于 vue-skia https://github.com/rustq/vue-skia
    milukun
        3
    milukun  
       Jul 23, 2024
    Flutter 也是基于 SKIA ,但是现在抛弃了,因为在 iOS 上每次打开 APP/安卓首次打开 APP 第一次播放动画时都会 jank ,所以改用 Impeller
    不知道这个会不会
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2781 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 11:31 · PVG 19:31 · LAX 04:31 · JFK 07:31
    ♥ Do have faith in what you're doing.