Files
divkit/client/ios
morevsavva 50c52e20c2 Add snapshots for tint mode
Add snapshots for tint mode

Add blur and tint mode for images.
2022-11-28 18:12:22 +03:00
..
2022-11-22 16:29:28 +03:00
2022-11-24 18:28:46 +03:00
2022-11-16 18:37:19 +03:00
2022-10-12 11:27:27 +03:00
2022-11-16 18:37:19 +03:00
2022-10-10 02:13:24 +03:00
2022-10-16 20:04:02 +03:00

DivKit for iOS client library

SwiftPM CocoaPods Size

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

Installing DivKit

DivKit supports Swift Package Manager and CocoaPods.

Use this repository to install DivKit using Swift Package Manager: https://github.com/divkit/divkit-ios.git.

Use DivKit podspec to install DivKit using CocoaPods:

pod 'DivKit'
pod install

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 Swift Package Manager.


Documentation. Medium tutorial. Habr tutorial.

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

Twitter