MovieSwiftUI

SwiftUI & Combine app using MovieDB API. With a custom Flux (Redux) implementation.

  • 所有者: Dimillian/MovieSwiftUI
  • 平台:
  • 许可证: Apache License 2.0
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

MovieSwiftUI

MovieSwiftUI is an application that uses the MovieDB API and is built with SwiftUI.
It demos some SwiftUI (& Combine) concepts. The goal is to make a real world application using SwiftUI only. It'll be updated with new features as they come to the SwiftUI framework.

I have written a series of articles that document the design and architecture of the app: Making a Real World Application With SwiftUI.

App Image

Architecture

MovieSwiftUI data flow is a subset and a custom implementation of the Flux part of Redux.
It implement the State in an ObservableObject as a @Published wrapped property, so changes are published whenever a dispatched action produces a new state after being reduced.
The state is injected as an environment object in the root view of the application, and is easily accessible anywhere in the application.
SwiftUI does all aspects of diffing on the render pass when your state changes. No need to be clever when extracting props from your State, they're simple dynamic vars at the view level. No matter your objects' graph size, SwiftUI speed depends on the complexity of your views hierarchy, not the complexity of your object graph.

SwiftUI

MovieSwiftUI is in pure Swift UI, the goal is to see how far SwiftUI can go in its current implementation without using anything from UIKit (basically no UIView/UIViewController representable).

It'll evolve with SwiftUI, every time Apple edits existing or adds new features to the framework.

Platforms

Currently MovieSwiftUI runs on iPhone, iPad, and macOS.

Follow me on Twitter to get the latest update about features, code and SwiftUI tips and tricks!

主要指标

概览
名称与所有者Dimillian/MovieSwiftUI
主编程语言Swift
编程语言Swift (语言数: 2)
平台
许可证Apache License 2.0
所有者活动
创建于2019-06-06 19:19:46
推送于2024-01-17 15:31:08
最后一次提交2021-06-07 13:45:32
发布数0
用户参与
星数6.5k
关注者数134
派生数653
提交数343
已启用问题?
问题数45
打开的问题数7
拉请求数17
打开的拉请求数4
关闭的拉请求数7
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?