StateView is an open source Swift iOS component from Sahand Nayebaziz providing a UIView subsittute that automatically updates when the data changes.
As the readme states:
StateView is a UIView subclass that uses modern thinking and inspiration from what Facebook has done with React and the DOM to make displaying and updating your views easier, simpler, and more fun.
StateViews update themselves when data changes calculating any differences and only changing when necessary. StateViews can also automatically update their subviews which an be standard views.
You can find StateView on Github here .
An interesting component for adding some reactivity to your views.
转载本站任何文章请注明：转载至神刀安全网，谢谢神刀安全网 » Maniac Dev : StateView – An iOS Swift React Inspired Automatically Updating UIView Component