KPCAAPlanet

extension KPCAAPlanet: CustomStringConvertible

KPCAAPlanet is an enum for all historical 9 planets, that is, including Pluto.

  • Return the KPCAAPlanet enum value from a planet name string.

    Declaration

    Swift

    public static func fromString(_ string: String) -> KPCAAPlanet

    Parameters

    string

    The planet name.

    Return Value

    The KPCAAPlanet enum value

  • Return the planet name according to the enum value.

    Declaration

    Swift

    public var description: String { get }