Files
robot-divkit 42ad08ab64 Updated version to 32.49.0
commit_hash:ddb8ed644cd911fe7846fbb0f1c07181d7fa9f32
2026-05-06 14:07:49 +03:00
..
2026-05-06 14:07:49 +03:00
2026-05-06 14:07:49 +03:00
2026-04-30 18:28:56 +03:00
2026-02-05 16:59:34 +03:00
2025-09-18 12:40:09 +03:00
2026-02-19 13:42:43 +03:00
2026-02-26 13:21:52 +03:00
2025-09-18 12:40:09 +03:00
2023-08-29 18:08:07 +03:00

DivKit for iOS client library

SwiftPM CocoaPods Size

How it works

DivKit builds native views from JSON data.

JSON → DivData → DivView

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

  • DivKitComponents DivView dependencies.

  • DivView - plain UIKit View.

Although DivKit produces UIKit views, it can be easily 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.

Add DivKit pod into your application Podfile to install DivKit using CocoaPods:

source 'https://github.com/divkit/divkit-ios.git'

target 'MyApp' do
  pod 'DivKit'
end

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 scheme to run all unit tests.

Use SnapshotTests scheme to run snapshot tests.

Sample Projects

Samples/UIKitIntegration/DivKitSample.xcodeproj sample project with simple DivKit integration using Swift Package Manager and UIKit. Samples/SwiftUIIntegration/DivKitSample.xcodeproj sample project with simple DivKit integration using Swift Package Manager and SwiftUI.


Documentation. Medium tutorial. Habr tutorial.

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