Classes

The following classes are available globally.

  • The main Crystal class. Instead of creating a Crystal object, you use shared Crystal.shared singleton to manage themes.

    In order to use Crystal, you must make Crystal conform to CrystalDetermined protocol, which is also the opportunity for you to determine the concrete theme type.

    Take a look at CrystalDetermined to learn about all the available methods and properties you can use.

    See more

    Declaration

    Swift

    public class Crystal
  • Wrapper for crystal compatible types.

    See more

    Declaration

    Swift

    public class Crystalline<Target, Theme> : CrystallineType where Target : AnyObject, Theme : CrystalThemeType