Files
divkit/client/ios
2022-09-06 10:56:00 +03:00
..
2022-09-05 12:34:17 +03:00
2022-08-31 18:54:00 +03:00
2022-08-26 22:36:30 +03:00
2022-08-25 21:21:49 +03:00
2022-08-31 18:48:39 +03:00

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 playground application).

DivKit Project

DivKit.xcodeproj main Xcode project that contains all DivKit modules, tests and playground application.

Use DivKitPlayground scheme to build and run playground 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