SwiftUI PageViewController with different View types

In the InterfacingWithUIKit Landmarks tutorial there is an example of how to implement a UIPageViewController in SwiftUI. This example doesn't allow for using different types of views as pages. Is it possible to modify this code to allow for different view types?