Skip to content

Latest commit

 

History

History
36 lines (19 loc) · 1.23 KB

README.md

File metadata and controls

36 lines (19 loc) · 1.23 KB

DivKit for iOS client library

How it works

DivKit builds native views from JSON data.

JSON → DivData → LayoutKit block → UIView

  • JSON – raw data with templates in DivKit format (see DivKit schema).

  • DivData – data objects parsed from JSON.

  • LayoutKit is a library that builds UIKit views using declarative approach.

Although DivKit produces UIKit views, it can be easyly used in SwiftUI apps (see demo application).

DivKit Project

DivKit.xcodeproj – main Xcode project that contains all DivKit modules, tests and demo application. Use DivKitDemoApp scheme to build and run demo application.

Use UnitTests sheme to run all unit tests.

Use SnapshotTests scheme to run snapshot tests.

Sample Project

Sample/DivKitSample.xcodeproj – sample project with simple DivKit integration using CocoaPods.


Documentation. Medium tutorial. Habr tutorial.

Telegram: News | English-speaking chat | Чат на русском.

Twitter