---
title: "init(imageTrailingEdgePadding:imageWidth:imageColor:)"
framework: contactsui
role: symbol
role_heading: Initializer
path: "contactsui/contactaccessbutton/style/init(imagetrailingedgepadding:imagewidth:imagecolor:)"
---

# init(imageTrailingEdgePadding:imageWidth:imageColor:)

Creates a contact access button with the provided styling values.

## Declaration

```swift
init(imageTrailingEdgePadding: CGFloat? = nil, imageWidth: CGFloat? = nil, imageColor: Color? = nil)
```

## Parameters

- `imageTrailingEdgePadding`: The trailing spacing between contact image and text fields. If nil, the style uses a default value.
- `imageWidth`: The contact image width, in points. If nil, the style uses a default value.
- `imageColor`: The color of the avatar badge to use, when a person in the contacts list doesn’t have a photo assigned. For design guidance, see Human Interface Guidelines > Color > https://developer.apple.com/design/human-interface-guidelines/color#Specifications. Defaults to doc://com.apple.documentation/documentation/SwiftUI/Color/gray.
