Files
divkit/client/ios
ansestepanov e0efba60b9 properties prototype with strings
commit_hash:9357f968304ae7bad3b9e7541b6b03a90bfd0b6e
2025-08-19 13:38:45 +03:00
..
2025-08-13 14:11:06 +03:00
2025-08-19 13:38:45 +03:00
2025-08-01 23:29:56 +03:00
2025-08-05 13:40:15 +03:00
2023-08-29 18:08:07 +03:00
2025-07-30 12:07:47 +03:00
2025-07-04 00:17:17 +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 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.

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: News | English-speaking chat | Чат на русском.