Skip to content

fedandburk/net-ios-extensions

Repository files navigation

Extensions for .NET iOS

GitHub Nuget CI CD CodeFactor

Extensions is a .NET library with common iOS extensions and helpers.

Installation

Use NuGet package manager to install this library.

Install-Package Fedandburk.iOS.Extensions

Usage

using Fedandburk.iOS.Extensions;

Generic UITableViewSource

To easily bind items collection or a collection of collections, e.g. groups, the TableViewSource class can be used.

TableViewSource also supports:

  • Live collections (including groups), e.g. collections that implement INotifyCollectionChanged interface
  • Row animations customisation
  • Animated row expanding
  • Rows editing and removing
  • Rows moving
  • Rows selection with automatic deselection
  • Accessory buttons handling
  • Custom section footers and headers

NSObject Extensions

To perform an Action on the main UI thread with the current thread check:

@object.InvokeOnMainThreadIfNeeded(action); 

UIApplication Extensions

To get the topmost presented UIViewController:

var topViewController = UIApplication.SharedApplication.GetTopViewController(); 

UIColor Extensions

To convert a UIColor into a hexadecimal color:

var hex = UIColor.Red.ToHexColor();

To convert a UIColor into a Color color:

var hex = UIColor.Red.ToColor();

Color Extensions

To convert a Color into a UIColor color:

var hex = Color.Red.ToColor();

About

A collection of extensions for .NET iOS.

Resources

License

Stars

0 stars

Watchers

1 watching

Forks

Packages

 
 
 

Contributors

Languages

Generated from fedandburk/template-net