Extensions is a .NET library with common iOS extensions and helpers.
Use NuGet package manager to install this library.
Install-Package Fedandburk.iOS.Extensionsusing Fedandburk.iOS.Extensions;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
INotifyCollectionChangedinterface - 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
To perform an Action on the main UI thread with the current thread check:
@object.InvokeOnMainThreadIfNeeded(action); To get the topmost presented UIViewController:
var topViewController = UIApplication.SharedApplication.GetTopViewController(); 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();To convert a Color into a UIColor color:
var hex = Color.Red.ToColor();