Migrated SharedResources to unified api

Pasted nint to int. Changed
NavigationController.DismissModalViewControllerAnimated to
NavigationController.DismissModalViewcontroller. Changed
NavigationController.PopViewControllerAnimated to
NavigationController.PopViewController. Changed
CGContext.SetRGBFillColor to CGContext.SetFillColor.