<!--
{
  "availability" : [
    "iOS: 17.2.0 -",
    "iPadOS: 17.2.0 -",
    "macCatalyst: 26.4.0 -",
    "macOS: 26.4.0 -",
    "visionOS: 2.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ManagedAppDistribution",
  "identifier" : "/documentation/ManagedAppDistribution/ManagedApp/iconURL(fitting:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "ManagedAppDistribution"
    ],
    "preciseIdentifier" : "s:22ManagedAppDistribution0aB0V7iconURL7fitting10Foundation0E0VSgSo6CGSizeV_tF"
  },
  "title" : "iconURL(fitting:)"
}
-->

# iconURL(fitting:)

A URL for the icon of the app.

```
func iconURL(fitting size: CGSize) -> URL?
```

## Parameters

`size`

The size of the icon.

## Return Value

The URL of the icon.

## Discussion

The icon scales to fit the given size.

---

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)