public LoadingOverlayView() { BackgroundColor = UIColor.Black.ColorWithAlpha(0.75f); Frame = UIScreen.MainScreen.Bounds; _dialogView = new UIView(); _dialogView.BackgroundColor = UIColor.White; _imageView = new UIImageView(ImageHelper.ApplyThemeColorToImage("taxi_progress.png", true, new CGSize(52, 20), UIColor.FromRGBA(0, 122, 255, 255), new CGPoint(25, 10))); _imageView.SizeToFit(); _imageView.Hidden = true; _progressView = new CircularProgressView(new CGRect(0, 0, 67, 67), Theme.CompanyColor); _progressView.OnCompleted = () => Hide(); _progressView.LineWidth = 1.5f; _progressView.Hidden = true; _dialogView.Frame = new CGRect(0, UIScreen.MainScreen.Bounds.Height / 2, UIScreen.MainScreen.Bounds.Width, 0); _progressView.SetHorizontalCenter(UIScreen.MainScreen.Bounds.Width / 2); _progressView.SetVerticalCenter(UIScreen.MainScreen.Bounds.Height / 2); _imageView.SetHorizontalCenter(UIScreen.MainScreen.Bounds.Width / 2); _imageView.SetVerticalCenter(UIScreen.MainScreen.Bounds.Height / 2); AddSubviews(_dialogView, _progressView, _imageView); }