Spark is the Leboncoin's Design System.
The repository here contains the iOS demo app to test components in SwiftUI and UIKit.
You can also see all of our Spark iOS repositories on Github.
To launch the demo app, go to the roor of the repository and launch the command line :
$ xcodegen
Then open the generated file : Spark.xcodeproj
.
You are a developer ? A technical documentation in DocC is available here.
Note: Instructions below are for using SPM without the Xcode UI. It's the easiest to go to your Project Settings -> Swift Packages and add SparkDemo from there.
To integrate using Apple's Swift package manager, without Xcode integration, add the following as a dependency to your Package.swift
:
.package(url: "https://github.com/leboncoin/spark-ios-demo.git", .upToNextMajor(from: "1.0.0"))
and then specify SparkDemo
as a dependency of the Target in which you wish to use the SparkDemo.
Here's an example Package.swift
:
// swift-tools-version:5.9
import PackageDescription
let package = Package(
name: "MyPackage",
platforms: [
.iOS(.v16)
],
products: [
.library(
name: "MyPackage",
targets: ["MyPackage"]),
],
dependencies: [
.package(
url: "https://github.com/leboncoin/spark-ios-demo.git",
.upToNextMajor(from: "1.0.0")
)
],
targets: [
.target(
name: "MyPackage",
dependencies: [
.product(
name: "SparkDemo",
package: "spark-ios-demo"
),
]
)
]
)