/DCFrame

DCFrame is a swift language UI combination frame, which can easily assemble complex UI.

Primary LanguageSwiftMIT LicenseMIT

title

CI Status Version License Platform


DCFrame is a UI combination frame, it can be easily achieved:

  1. Assemble and manage complex UI modules;
  2. Reuse and migrate UI modules at no cost;
  3. Communication between UI modules without coupling.

Requirements

  • Xcode 10.2+
  • iOS 11.0+
  • Swift 5.0+

Installation

Cocoapods

CocoaPods is a dependency manager for Cocoa projects. For usage and installation instructions, visit their website. To integrate DCFrame into your Xcode project using CocoaPods, specify it in your Podfile:

pod 'DCFrame'

Carthage

Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks. To integrate DCFrame into your Xcode project using Carthage, specify it in your Cartfile:

github "bytedance/DCFrame"

Swift Package Manager

Swift Package Manager is a tool for managing the distribution of Swift code. It’s integrated with the Swift build system to automate the process of downloading, compiling, and linking dependencies. To integrate DCFrame into your Xcode project using Swift Package Manager, add it to the dependencies value of your Package.swift:

dependencies: [
    .package(url: "https://github.com/bytedance/DCFrame.git", .upToNextMajor(from: "1.0.9"))
]

Guides

DocC in Xcode

We can quickly get started with DCFrame through the following guides:

  • Simple List: How to create a simple list through DCFrame;
  • Post List: Through this example we learn to create a more complex combination list;
  • Module Communication:How to perform module event and data sharing in the post list;
  • More Examples: We provide the same example as IGListKit, simply pull the git repo and run 'DCFrame.xcworkspace' in the 'Example' folder.

License

DCFrame is available under the MIT license. See the LICENSE file for more info.