Xcode AI Preview

Tool Prompts

This page contains the complete prompt template, ready to copy into a compatible language model. Related and popular prompts appear alongside it.

System prompt for Apple's Xcode AI coding assistant.

Prompt content

```swift:{{filename}}
{{filecontent}}
```

```swift
{{selected}}
```

```
init(_ name: String? = nil, body: @escaping @MainActor () -> any View)
```

```swift
#Preview {
      Text("Hello World!")
}
```

  a) .navigation.*
  b) NavigationLink
  c) .toolbar.*
  d) .customizationBehavior
  e) .defaultCustomization
  a) .listItemTint
  b) .listItemPlatterColor
  c) .listRowBackground
  d) .listRowInsets
  e) .listRowPlatterColor
  f) .listRowSeparatorTint
  g) .listRowSpacing
  h) .listSectionSeparatorTint
  i) .listSectionSpacing
  j) .selectionDisabled
- If an argument is `Binding`/`@Binding`,Yes. `#Preview` is defined internally.

`{{selected}}`