<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PhotoKit",
  "identifier" : "/documentation/Photos/PHAssetSourceType",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Photos"
    ],
    "preciseIdentifier" : "c:@E@PHAssetSourceType"
  },
  "title" : "PHAssetSourceType"
}
-->

# PHAssetSourceType

The means by which an asset enters the Photos library.

```
struct PHAssetSourceType
```

## Topics

### Initializers

[`init(rawValue:)`](/documentation/Photos/PHAssetSourceType/init(rawValue:))

Initializes an asset source type from a raw value.

### Constants

[`PHAssetSourceTypeNone`](/documentation/Photos/PHAssetSourceType/PHAssetSourceTypeNone)

Source information is not available for the asset.

[`PHAssetSourceTypeUserLibrary`](/documentation/Photos/PHAssetSourceType/typeUserLibrary)

The asset is part of the user’s main Photos library.

[`PHAssetSourceTypeCloudShared`](/documentation/Photos/PHAssetSourceType/typeCloudShared)

The asset originates from an iCloud Shared Album.

[`PHAssetSourceTypeiTunesSynced`](/documentation/Photos/PHAssetSourceType/typeiTunesSynced)

The asset originates from a Mac or PC and is present on the device through iTunes sync.

## Relationships

### Conforms To

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`SetAlgebra`](/documentation/Swift/SetAlgebra)

[`Sendable`](/documentation/Swift/Sendable)

[`ExpressibleByArrayLiteral`](/documentation/Swift/ExpressibleByArrayLiteral)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`OptionSet`](/documentation/Swift/OptionSet)

[`Equatable`](/documentation/Swift/Equatable)

---

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)