Sample code for 30+ languages & platforms
Swift

Get Version of Chilkat

Demonstrate how to find out the version of Chilkat at runtime.

Chilkat Swift Downloads

Swift

func chilkatTest() {
    // Most Chilkat classes include a Version property.
    // To find the version of Chilkat, such as "9.5.0.94",
    // instantiate the object and examine the Version property.

    // For example:
    let sftp = CkoSFtp()!
    var chilkatVersion: String? = sftp.version
    print("\(chilkatVersion!)")

    // Most other Chilkat classes also have the Version property
    // For example:
    let json = CkoJsonObject()!
    print("\(json.version!)")

}