Contents

Digia-Technology-Private-Limited/digia_engage_iOS

[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2FDigia-Technology-Private-Limited%2Fdigia_expr_swift%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/Digia-Technology-Private-Limited/digia_engage_ios) [![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2FDigia-Technology-Private-Limited%2Fdigia_expr_swift%2Fbadge%3Ftype%3Dplatforms)](https://swiftpackageindex.com/Digia-Technology-Private-Limited/digia_engage_ios) [![License: BSL 1.1](https://img.shields.io/badge/License-BSL%201.1-blue.svg)](LICENSE)

Requirements

| | Minimum | | ----- | ------- | | iOS | 16.0 | | Swift | 5.10 | | Xcode | 16.0 |

Installation

Swift Package Manager

Add the package to your Package.swift:

dependencies: [
    .package(
        url: "https://github.com/Digia-Technology-Private-Limited/digia_engage_ios.git",
        from: "1.0.0-beta.2"
    ),
]

Then add DigiaEngage as a target dependency:

.target(
    name: "YourTarget",
    dependencies: [
        .product(name: "DigiaEngage", package: "digia_engage_ios"),
    ]
)

Or add it directly in Xcode via File → Add Package Dependencies and enter the repository URL.

Usage

Initialize the SDK

import DigiaEngage

try await Digia.initialize(
    DigiaConfig(apiKey: "YOUR_API_KEY")
)

Render an experience

import DigiaEngage
import SwiftUI

struct ContentView: View {
    var body: some View {
        DigiaHost {
            DUIFactory.shared.createInitialPage()
        }
    }
}

Render a slot

DigiaSlot("hero-banner")

Plugins

Digia Engage has a plugin architecture for CEP integrations.

Digia.register(YourCEPPlugin())

Available plugins:

Sample App

A sample app is included in SampleApp/. It links the local Swift package (DigiaEngageSample.xcodeproj → package at ..). To run it:

open SampleApp/DigiaEngageSample.xcodeproj

Select the DigiaEngageSample scheme and run on an iOS 16+ simulator (Xcode resolves package dependencies automatically).

License

BSL 1.1 — Business Source License 1.1. Source available; production use requires a license from Digia Technology.


Built with ❤️ by the Digia team

Package Metadata

Repository: Digia-Technology-Private-Limited/digia_engage_iOS

Stars: 1

Forks: 0

Open issues: 0

Default branch: main

Primary language: swift

License: Other

README: README.md