---
title: sourceType
framework: photos
role: symbol
role_heading: Instance Property
path: photos/phasset/sourcetype
---

# sourceType

The means by which the asset enters the user’s Photos library.

## Declaration

```swift
var sourceType: PHAssetSourceType { get }
```

## Discussion

Discussion Assets from some sources can be edited, deleted, or added to collections; assets from other sources do not support these operations. For details, see PHAssetSourceType.

## 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)
- [PHAssetSourceType](photos/phassetsourcetype.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)
