Skip to content
Tools for Implementing a Graphical User Interface
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
Documentation
Resources/SDGInterfaceElements
Sources
Tests
Xcode
.gitignore
.travis.yml
LICENSE.md
Package.resolved
Package.swift
README.md
Refresh (Linux).sh
Refresh (macOS).command
Workspace.swift

README.md

🇨🇦EN

macOS • iOS • watchOS • tvOS

Documentation

SDGInterface

SDGInterface provides tools for implementing a graphical user interface.

Καὶ ὁ Λόγος σὰρξ ἐγένετο καὶ ἐσκήνωσεν ἐν ἡμῖν, καὶ ἐθεασάμεθα τὴν δόξαν αὐτοῦ, δόξαν ὡς μονογενοῦς παρὰ πατρός, πλήρης χάριτος καὶ ἀληθείας.
And the Word became flesh and dwelt among us and we have watched His glory, the glory of the Only Begotten of the Father, full of grace and truth.

                                                                                                    ―‎יוחנן/Yoẖanan

Features

  • API unification accross platforms.

(For a list of related projects, see here.)

Importing

SDGInterface provides libraries for use with the Swift Package Manager.

Simply add SDGInterface as a dependency in Package.swift and specify which of the libraries to use:

let package = Package(
    name: "MyPackage",
    dependencies: [
        .package(url: "https://github.com/SDGGiesbrecht/SDGInterface", .upToNextMinor(from: Version(0, 0, 0))),
    ],
    targets: [
        .target(name: "MyTarget", dependencies: [
            .productItem(name: "SDGInterface", package: "SDGInterface"),
            .productItem(name: "SDGInterfaceElements", package: "SDGInterface"),
            .productItem(name: "SDGApplication", package: "SDGInterface"),
        ])
    ]
)

The libraries’ modules can then be imported in source files:

import SDGInterface
import SDGInterfaceElements
import SDGApplication

Example Usage

public final class SampleApplicationDelegate : ApplicationDelegate {

    public override func applicationDidFinishLaunching() {
        super.applicationDidFinishLaunching()
        setSamplesUp()
    }

    public override func openPreferences(_ sender: Any?) {
        print("Opening preferences...")
    }
}

About

The SDGInterface project is maintained by Jeremy David Giesbrecht.

If SDGInterface saves you money, consider giving some of it as a donation.

If SDGInterface saves you time, consider devoting some of it to contributing back to the project.

Ἄξιος γὰρ ὁ ἐργάτης τοῦ μισθοῦ αὐτοῦ ἐστι.
For the worker is worthy of his wages.

                                                                                                    ―‎ישוע/Yeshuʼa

You can’t perform that action at this time.