Sex

An enumeration containing sex types

Declaration

@objc public enum Sex : Int, Encodable {
    case Male
    case Female
    case Undetermined
    
    public var stringValue: String { get }
}

Only relevant details are shown, boilerplate or standard Swift generated code is omitted

Summary

Cases

Name

Description

The subject is a male.

The subject is a female.

The sex of the subject is undetermined.

Public variables

Name

Type

Description

String

Returns the case name, separated by spaces, in string format.

Cases

Male

case Male

The subject is a male.

Female

case Female

The subject is a female.

Undetermined

case Undetermined

The sex of the subject is undetermined.

Public variables

stringValue

public var stringValue: String { get }

Example: "Female"

Returns the case name, separated by spaces, in string format.

Where this is used

Last updated