Files
booster 0781375b20 Fixed macos compilation
commit_hash:c2880a3bb5fb6dcb5124828823a5eb5b779f1fb6
2024-10-07 15:55:30 +03:00
..
2024-10-02 12:47:31 +03:00
2024-10-04 13:10:19 +03:00
2024-09-27 16:54:04 +03:00
2024-07-12 20:33:42 +03:00
2024-09-24 13:17:41 +03:00
2024-10-07 15:55:30 +03:00
2024-07-12 20:33:42 +03:00
2024-07-25 14:08:21 +03:00
2024-07-12 20:33:42 +03:00
2024-01-10 02:08:08 +03:00
2024-02-27 10:59:51 +03:00
2024-01-10 02:08:08 +03:00
2023-08-29 18:08:07 +03:00
2024-09-05 23:01:13 +03:00
2024-03-06 23:08:41 +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 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 | Чат на русском.