<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 7.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/Label/init(_:image:)-6zbvg",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI5LabelVA2A4TextVRszAA5ImageVRs_rlE_5imageACyAeGGqd___SStcSyRd__lufc"
  },
  "title" : "init(_:image:)"
}
-->

# init(_:image:)

Creates a label with an icon image and a title generated from a string.

```
nonisolated init<S>(_ title: S, image name: String) where S : StringProtocol
```

## Parameters

`title`

A string used as the label’s title.

---

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)