Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

Allow iOS PageRenderer to render as custom UIViewController

$
0
0

Summary

Update the PageRenderer class so that it can render as a custom UIViewController instead of just a UIViewController

API Changes

I propose two ways of doing this.

Make PagerRenderer generic, so the user can set the page like so:

CustomPageRenderer : PageRenderer

or, add a SetNativeControl() function so the user can set what control to render as, such as:

var myPage = new MyCustomUIViewController();
SetNativeControl(myPage);

Intended Use Case

There are a lot of libraries out there that are just classes that inherent from UIViewController, we can't really use them since PageRenderer will only render a Xamarin forms page as a UIViewController.


Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>