---
title: rootMediaGroup
framework: medialibrary
role: symbol
role_heading: Instance Property
path: medialibrary/mlmediasource/rootmediagroup
---

# rootMediaGroup

The base media group in the media source that contains all other groups within the source as descendant elements.

## Declaration

```swift
var rootMediaGroup: MLMediaGroup? { get }
```

## Discussion

Discussion This accessor property is nonblocking. If there is no data yet, it returns nil and automatically triggers an internal asynchronous request. When data arrives, a KVO notification is sent via the main thread.
