---
title: PHAssetSourceType
framework: photos
role: symbol
role_heading: Structure
path: photos/phassetsourcetype
---

# PHAssetSourceType

The means by which an asset enters the Photos library.

## Declaration

```swift
struct PHAssetSourceType
```

## Topics

### Initializers

- [init(rawValue:)](photos/phassetsourcetype/init(rawvalue:).md)

### Constants

- [typeUserLibrary](photos/phassetsourcetype/typeuserlibrary.md)
- [typeCloudShared](photos/phassetsourcetype/typecloudshared.md)
- [typeiTunesSynced](photos/phassetsourcetype/typeitunessynced.md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [ExpressibleByArrayLiteral](swift/expressiblebyarrayliteral.md)
- [OptionSet](swift/optionset.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [SetAlgebra](swift/setalgebra.md)

## See Also

### Reading Asset Metadata

- [contentType](photos/phasset/contenttype.md)
- [mediaType](photos/phasset/mediatype.md)
- [PHAssetMediaType](photos/phassetmediatype.md)
- [mediaSubtypes](photos/phasset/mediasubtypes.md)
- [PHAssetMediaSubtype](photos/phassetmediasubtype.md)
- [sourceType](photos/phasset/sourcetype.md)
- [pixelWidth](photos/phasset/pixelwidth.md)
- [pixelHeight](photos/phasset/pixelheight.md)
- [addedDate](photos/phasset/addeddate.md)
- [creationDate](photos/phasset/creationdate.md)
- [modificationDate](photos/phasset/modificationdate.md)
- [location](photos/phasset/location.md)
- [duration](photos/phasset/duration.md)
- [isFavorite](photos/phasset/isfavorite.md)
- [isHidden](photos/phasset/ishidden.md)
