Skip to content

BleepingSwift/controlwidgetbutton-control-center

Repository files navigation

ControlwidgetbuttonControlCenter

Sample code demonstrating Create interactive buttons for the Control Center using ControlWidgetButton and App Intents in iOS 18..

This project accompanies the article: ControlWidgetButton for Control Center Widgets

Requirements

  • Xcode 26.2+
  • iOS 26.0+
  • Swift 6.0

Getting Started

  1. Clone this repository
  2. Run xcodegen generate (requires XcodeGen)
  3. Open ControlwidgetbuttonControlCenter.xcodeproj
  4. Build and run

What's Included

  • App.swift: Source file
  • ContentView.swift: Source file
  • CreateNoteIntent.swift: Source file
  • StartTimerIntent.swift: Source file
  • PlayPlaylistIntent.swift: Source file
  • ToggleDarkModeIntent.swift: Source file
  • OpenScannerIntent.swift: Source file
  • QuickNoteControl.swift: Source file
  • TimerControl.swift: Source file
  • PlayFavoritesControl.swift: Source file
  • OpenScannerControl.swift: Source file
  • MusicPlayer.swift: Source file
  • NotificationNames.swift: Source file
  • ControlWidgets.swift: Source file

Learn More

Read the full article at BleepingSwift for detailed explanations and additional examples.

License

MIT License - see LICENSE for details.

About

Create interactive buttons for the Control Center using ControlWidgetButton and App Intents in iOS 18.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages