ios-samples/CustomTransitions
Rolf Bjarne Kvinge c48c4d648c
Add .editorconfig and fix formatting accordingly. (#471)
The new .editorconfig is copied from the one in xamarin/xamarin-macios.

Formatting was fixed using 'dotnet format whitespace --folder .'
2023-02-17 14:55:43 +01:00
..
CustomTransitions Add .editorconfig and fix formatting accordingly. (#471) 2023-02-17 14:55:43 +01:00
Screenshots Custom transitions sample (#139) 2017-01-12 19:50:49 -03:00
CustomTransitions.sln Custom transitions sample (#139) 2017-01-12 19:50:49 -03:00
Metadata.xml Custom transitions sample (#139) 2017-01-12 19:50:49 -03:00
README.md onboard missing samples 2019-08-01 19:45:18 -07:00

README.md

name description page_type languages products urlFragment
Xamarin.iOS - Custom View Controller Presentations and Transitions Custom view controller presentations and transitions: demonstrates using the view controller transitioning APIs sample
csharp
xamarin
customtransitions

Custom View Controller Presentations and Transitions

Custom View Controller Presentations and Transitions demonstrates using the view controller transitioning APIs to implement your own view controller presentations and transitions. Learn from a collection of easy to understand examples how to use UIViewControllerAnimatedTransitioning, UIViewControllerInteractiveTransitioning, and UIPresentationController to create unique presentation styles that adapt to the available screen space.

[!IMPORTANT] This sample should be run on an iOS device. Some animations may not display correctly in the iOS Simulator.

Cross Dissolve

This example implements a full screen presentation that transitions between view controllers using a cross dissolve animation. It demonstrates the minimum configuration necessary to implement a custom transition.

Swipe

This example implements a full screen presentation that transitions between view controllers by sliding the presented view controller on and off the screen. You will learn how to implement UIPercentDrivenInteractiveTransition to add interactivity to your transitions.

Custom Presentation

This example implements a custom presentation that displays the presented view controller in the lower third of the screen. You will learn how to implement your own UIPresentationController subclass that defines a custom layout for the presented view controller, and responds to changes to the presented view controller's preferredContentSize.

Adaptive Presentation

This example implements a custom presentation that responds to size class changes. You will learn how to implement UIAdaptivePresentationControllerDelegate to adapt your presentation to the compact horizontal size class.

Checkerboard

This example implements a transition between two view controllers in a UINavigationController. You will learn how to take your transitions into the third dimension with perspective transforms, and how to leverage the snapshotting APIs to create copies of views.

Slide

This example implements an interactive transition between two view controllers in a UITabBarController. You will learn how to implement an interactive transition where the destination view controller could change in the middle of the transition.

Custom View Controller Presentations and Transitions application screenshot

License

Xamarin port changes are released under the MIT license. Original copyright (C) 2016 Apple Inc. All rights reserved.