Skip to content

Files

Latest commit

97a99c9 · Dec 25, 2023

History

History
This branch is 1734 commits behind divkit/divkit:main.

ios

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Dec 20, 2023
Dec 22, 2023
Dec 25, 2023
Dec 13, 2023
Oct 30, 2023
Dec 18, 2023
Nov 21, 2023
Dec 25, 2023
Dec 19, 2023
Nov 16, 2023
Dec 25, 2023
Dec 16, 2023
Jun 30, 2023
Dec 22, 2023
Nov 16, 2023
Oct 30, 2023
Nov 28, 2023
Aug 4, 2023
Aug 29, 2023
Apr 6, 2023

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 | Чат на русском.

Twitter