---
title: dataSource
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uipageviewcontroller/datasource
---

# dataSource

The object that provides view controllers.

## Declaration

```swift
weak var dataSource: (any UIPageViewControllerDataSource)? { get set }
```

## Discussion

Discussion Methods of the data source are called in response to gesture-based navigation. If the value of this property is nil, then gesture-based navigation is disabled.

## See Also

### Providing the Page Content

- [UIPageViewControllerDataSource](uikit/uipageviewcontrollerdatasource.md)
