Swiftpack.co -  theos/orion as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
theos/orion
Elegant tweak development in pure Swift
.package(url: "https://github.com/theos/orion.git", from: "0.9.5")

Orion

A DSL for elegant tweak development in Swift.

TheosDocumentationChangelogsGet Help@theosdevIRC

About

Orion is a DSL designed to make it entirely effortless to interact with with Objective-C's dynamic aspects in Swift. The project's primary goal is to enable easy, fun, and versatile jailbreak tweak development in Swift. In some ways, it is to Swift what Logos is to Objective-C, but it's simultaneously a lot more than that.

It is possible to use Orion as a regular framework (invoking the preprocessor in a build script), or in a Theos tweak (recommended).

Orion is not a framework for hooking Swift code. As of now, Orion only supports hooking Objective-C and C code, however this may change in the future.

For more information, refer to the documentation.

Example

The following is a simple tweak which changes the text of all labels to say "hello":

class MyHook: ClassHook<UILabel> {
    func setText(_ text: String) {
        orig.setText("hello")
    }
}

License

See LICENSE.md for licensing information.

GitHub

link
Stars: 57
Last commit: 1 week ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Submit a free job ad (while I'm testing this). The analytics numbers for this website are here.

Dependencies

Release Notes

v0.9.5
1 week ago

Changes in this release:

  • The orion branch of Theos now supports compile-commands.json, and therefore rich autocomplete in any LSP-compatible IDE. Run make commands to generate the compile-commands.json file.
  • Initial support for Swift 5.5
  • Bug fixes

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics