### Run Swift Tests (Bash) Source: https://github.com/charlyk/swift-theme-kit/blob/master/CONTRIBUTING.md Executes the unit tests for the SwiftThemeKit project using the Swift Package Manager command `swift test`. This command compiles and runs all tests defined in the package. ```bash swift test ``` -------------------------------- ### Creating a Custom Theme Configuration (Swift) Source: https://github.com/charlyk/swift-theme-kit/blob/master/README.md Define a custom theme configuration by initializing a Theme object. Provide custom values for theme tokens like colors, typography, and spacing to override the default theme settings. ```swift let customTheme = Theme( colors: .customColors, typography: .customTypography, spacing: .customSpacing, // ... other configurations ) ``` -------------------------------- ### Clone SwiftThemeKit Repository (Bash) Source: https://github.com/charlyk/swift-theme-kit/blob/master/CONTRIBUTING.md Clones the forked SwiftThemeKit repository from GitHub to your local machine using the `git clone` command. Replace `your-username` with your actual GitHub username. ```bash git clone https://github.com/your-username/SwiftThemeKit.git ``` -------------------------------- ### Wrapping Root View with ThemeProvider (SwiftUI) Source: https://github.com/charlyk/swift-theme-kit/blob/master/README.md Wrap your application's root view or the main content view with ThemeProvider. This makes the current theme available through the environment for all child views, enabling theming throughout your app. ```swift @main struct MyApp: App { var body: some Scene { WindowGroup { ThemeProvider { ContentView() } } } } ``` -------------------------------- ### Adding SwiftThemeKit Dependency (Swift) Source: https://github.com/charlyk/swift-theme-kit/blob/master/README.md Add the SwiftThemeKit package dependency to your project's Package.swift file using Swift Package Manager. This allows your project to access the framework's components and utilities. ```swift dependencies: [ .package(url: "https://github.com/Charlyk/swift-theme-kit.git", from: "1.0.0") ] ``` -------------------------------- ### Create New Feature Branch (Bash) Source: https://github.com/charlyk/swift-theme-kit/blob/master/CONTRIBUTING.md Creates and switches to a new Git branch named `feature/my-new-feature`. This is recommended practice for isolating changes for a specific feature or bug fix. Replace `feature/my-new-feature` with a descriptive branch name. ```bash git checkout -b feature/my-new-feature ``` -------------------------------- ### Using Themed Components in SwiftUI View (SwiftUI) Source: https://github.com/charlyk/swift-theme-kit/blob/master/README.md Demonstrate how to use themed components like Button, Checkbox, and TextField within a SwiftUI view. Apply theme-specific modifiers (.applyThemeButtonStyle(), .applyThemeTextFieldStyle()) to adopt the current theme's styling. ```swift struct ContentView: View { @State private var isEnabled = false var body: some View { VStack { Button("Primary Button") { // Action } .applyThemeButtonStyle() Checkbox(isChecked: $isEnabled, label: "Enable Feature") TextField("Username", text: $username) .applyThemeTextFieldStyle() } } } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.