🚀Let's Start

Installing the package

The best way to interact with our API is to use one of our official libraries:

Swift Package Manager (requires Xcode 12+)

  1. In Xcode, select File > Swift Packages > Add Package Dependency.

Using our package in your app

After successfully adding the package to your project, you can present the game screen within your app. Make sure to import the package module at the top level in your file where you intend to present the game.

Import the package

import Tab-demo-package

Present it in your SwiftUI view. The entry point is GameStartView

import SwiftUI
import Tab-demo-package

struct ContentView: View {
    @State private var isPresenting = false

    var body: some View {
        Button("Play Game") {
        isPresenting.toggle()
        }
       .fullScreenCover(isPresented: $isPresenting, content: {
            GameStartView(isPresenting: $isPresenting)
        })
    }
}

In this section, we'll walk you through the steps to guarantee a seamless integration and address any potential version conflicts.

Compatibility:

Tab-demo-package is compatible with

The package is compatible with iOS 14 and above

Dependency Resolution:

1. Versioning:

  • Our package relies on specific dependencies. if your using any of them in your project. Ensure that you are using the recommended versions mentioned in the table.

2. Conflict Resolution:

  • In case of version conflicts with existing dependencies in your project, follow these steps:

    • Identify conflicting dependencies .

    • Check our documentation for recommended versions and update conflicting dependencies accordingly.

    • If issues persist, reach out to our us for personalized assistance.

Last updated