Files
divkit/client/ios
grechka62 b138d4fb67 Fix urls and colors in dict and array
commit_hash:83e82318b7963ef5e13d09da00501b671fbcb960
2025-09-25 14:25:34 +03:00
..
2025-09-24 16:10:12 +03:00
2025-09-24 16:10:12 +03:00
2025-09-16 19:28:08 +03:00
2025-09-18 12:40:09 +03:00
2025-09-18 12:40:09 +03:00
2025-09-18 12:40:09 +03:00
2025-09-18 12:40:09 +03:00
2025-09-18 12:40:09 +03:00
2025-09-18 12:40:09 +03:00
2025-09-18 12:40:09 +03:00
2025-09-18 12:40:09 +03:00
2025-09-18 12:40:09 +03:00
2025-09-18 12:40:09 +03:00
2025-09-18 12:40:09 +03:00
2025-09-18 12:40:09 +03:00
2023-08-29 18:08:07 +03:00
2025-09-17 20:55:03 +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 | Чат на русском.