<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -",
    "visionOS: 26.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "FoundationModels",
  "identifier" : "/documentation/FoundationModels/GenerationSchema/Property/init(name:description:type:guides:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Foundation Models",
      "FoundationModels"
    ],
    "preciseIdentifier" : "s:16FoundationModels16GenerationSchemaV8PropertyV4name11description4type6guidesAESS_SSSgSSmSay17_StringProcessing5RegexVyxGGtclufc::OverloadGroup"
  },
  "title" : "init(name:description:type:guides:)"
}
-->

# init(name:description:type:guides:)

Creates a property that contains a string type.

```
init<RegexOutput>(name: String, description: String? = nil, type: String.Type, guides: [Regex<RegexOutput>] = [])
```

## Parameters

`name`

The property’s name.

`description`

A natural language description of what content
should be generated for this property.

`type`

The type this property represents.

`guides`

An array of regexes to apply to this string. If the array contains multiple
regexes, only the last one applies.

---

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)