πLet's Start
Installing the package
Step 1. Add the JitPack repository to your build file
// For settings.gradle.kts
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven { url = uri("https://www.jitpack.io" ) }
}
}
// For settings.gradle
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven { url 'https://jitpack.io' }
}
}Step 2. Add the dependency
Using our package in your app
Import the package
import Tab-demo-packagePresent 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)
})
}
}
βΉοΈ Notes:
Compatibility:
Dependency Resolution:
Dependency
Version
Dependency
Version
Last updated