MacControlCenterUI

repository·main·Indexed 41 days ago

https://github.com/orchetect/maccontrolcenterui

A menu builder and suite of SwiftUI controls designed to mimic the look, feel, and animations of macOS Control Center menus. It integrates with SwiftUI's MenuBarExtra and supports both Dark and Light modes.

Tokens
300
Snippets
1
Records
3
Agent score
2%

What's inside MacControlCenterUI

  1. Use the Demo project to learn MacControlCenterUI

    main

    The Demo project serves as a reference implementation for integrating MacControlCenterUI with SwiftUI's MenuBarExtra. It demonstrates how to use all available controls provided by the library within a menu bar application context.

    Requirements:

    • Xcode: 16.0 or later
    • macOS: Sequoia 15.0 or later
  2. Install MacControlCenterUI via Swift Package Manager

    main

    You can add MacControlCenterUI to your project using Swift Package Manager (SPM).

    For Xcode App or Framework projects:

    1. Go to File → Swift Packages → Add Package Dependency...
    2. Enter the URL: https://github.com/orchetect/MacControlCenterUI

    For Swift Package projects: Add the dependency to your Package.swift file using the following syntax:

    .package(url: "https://github.com/orchetect/MacControlCenterUI", from: "2.7.0")

    After adding the dependency, import the library in your Swift files:

    import MacControlCenterUI