iOS#

Deploy to Xcode#

We Provide ZETIC.MLange iOS Package via Swift Package Manager. you can easily add ZeticMLange to your project! There are only two steps are needed.

  1. Add ZeticMLange Package in project.

  2. Select target to add ZeticMLange Package.

  3. Initialize ZeticMLangeModel with your Model Key / Personal Key and run

Prerequisite#

  • Model Key

    • Prepare Model Key in with SaaS or CLI method

  • Personal Key

    • Prepare Personal Key in with SaaS method

Step-by-step Guideline#

1. Add ZeticMLange Package in project.#

  1. Click File -> Add Package Dependencies in XCode.

  2. Search for https://github.com/zetic-ai/ZeticMLangeiOS.git.

  3. Click Add Package. add package

2. Select target to add ZeticMLange Package.#

  1. Select target in Add to Target column.

  2. Click Add Package. select target

3. Initialize and run ZeticMLangeModel model with Model Key#

  • Zetic MLange model running (Swift)

    // 1. Zetic MLange model running
    
    // (1) Load Zetic MLange model
    let model = try ZeticMLangeModel(tokenKey: $PERSONAL_KEY, name: $MODEL_NAME, version: $VERSION)
    
    // (2) Prepare model inputs
    let inputs: [Tensor] = [] // Prepare your inputs
    
    // (3) Run and get output tensors of the model
    let outputs = try model.run(inputs)
    

MLange iOS Sample App#