ZTUIKit is a lightweight and flexible UI framework written in Swift, designed to simplify the development of user interfaces for iOS applications. It provides a set of reusable UI components and utilities that can be easily integrated into your projects.
ZTUIKit is specifically designed for UIKit, providing a SwiftUI-like experience for building UI interfaces in UIKit.
This is currently the only solution that enables declarative UI syntax for all UIKit components.
- Chainable Syntax: Build UI components using a fluent and expressive syntax.
- Dynamic Widgets: Define dynamic UI components with customizable behaviors.
- Container Widgets: Create container views with support for adding and removing child widgets.
- Stack Widgets: Arrange UI elements in horizontal or vertical stacks.
- Spacer Views: Insert flexible or fixed space between UI elements.
- @ZTWidgetBuilder: Use function builders to construct complex UI hierarchies concisely.
- Inspired by SwiftUI: ZTUIKit aims to provide a SwiftUI-like experience for building UI interfaces in Swift.
- Functional Reactive Programming: Supports building UI components in a functional reactive style, similar to React.
- iOS 13.0+
- Swift 5.1+
You can install ZTUIKit via CocoaPods by adding the following line to your Podfile:
pod 'ZTUIKit'
Then, run the following command:
pod install
You can also use Swift Package Manager to integrate ZTUIKit into your Xcode project. Simply add it as a dependency in your Package.swift
file:
dependencies: [
.package(url: "https://github.com/willonboy/ZTUIKit.git", from: "0.5.0")
]
ZTUIKit is specifically designed for UIKit, providing a SwiftUI-like experience for building UI interfaces in UIKit. For more detailed usage instructions and examples, please refer to the documentation.
Hidden Version
ZTUIKit offers a hidden version that includes advanced features such as data binding, animation control, and more. These features significantly extend the capabilities of ZTUIKit, allowing it to support more complex UI requirements and interactive designs.
- Data Binding: Allows UI components' properties to be bound to data models, automatically updating the UI and simplifying code.
- Animation Control: Provides a variety of built-in animations and supports custom animations to enhance user interaction.
- Other Features: Includes but is not limited to complex layouts, view state management, and convenient integration of UIKit with SwiftUI.
The hidden version features require a separate commercial license. Please contact [[email protected]] for detailed licensing information and pricing. After purchasing the license, you will gain access to the hidden version features and be able to use them in your projects.
ZTUIKit is available under the AGPLv3 license.
ZTUIKit 提供灵活的授权模式,以支持个人用户的商用免费和公司用户的收费授权:
- 个人用户:免费授权,无需支付费用。
- 公司用户:根据公司规模收取商业授权费用。
详细的授权条款请查看 LICENSE。
ZTUIKit offers a flexible licensing model, supporting free commercial use for individual users and paid licenses for commercial entities:
- Individual Users: Free license, no payment required.
- Commercial Users: Paid license fees based on company size.
For detailed license terms, please refer to the LICENSE.