<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AlarmKit",
  "identifier" : "/documentation/AlarmKit/AlarmButton/init(text:textColor:systemImageName:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "AlarmKit"
    ],
    "preciseIdentifier" : "s:8AlarmKit0A6ButtonV4text0D5Color15systemImageNameAC10Foundation23LocalizedStringResourceV_7SwiftUI0E0VSStcfc"
  },
  "title" : "init(text:textColor:systemImageName:)"
}
-->

# init(text:textColor:systemImageName:)

Creates an alarm button.

```
init(text: LocalizedStringResource, textColor: Color, systemImageName: String)
```

## Parameters

`text`

The text for a label on the button.

`textColor`

The color for the text on the button.

`systemImageName`

The name of the icon you use on the button.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)