Skip to content

theos/orion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

f9a1b2d · May 26, 2024
May 26, 2024
Jul 24, 2022
Jul 27, 2023
May 26, 2024
May 25, 2024
Jul 24, 2022
May 25, 2024
Jul 24, 2022
Apr 10, 2021
Nov 16, 2021
Apr 27, 2021
Sep 2, 2020
Apr 28, 2021
May 25, 2024
Oct 19, 2020
May 25, 2024
Jul 24, 2022
Jun 14, 2023
Apr 25, 2021
May 26, 2024
Apr 28, 2021
Jan 3, 2021

Repository files navigation

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.