@@ -58,7 +58,7 @@ public sealed class ProgressHUD : UIView
5858 private CAShapeLayer ? _ringLayer ;
5959 private List < NSObject > ? _eventListeners ;
6060 private bool _displayContinuousImage ;
61-
61+
6262 private ToastPosition _toastPosition = ToastPosition . Center ;
6363
6464 public static void Initialize ( )
@@ -162,7 +162,7 @@ public UIImage InfoOutlineFullImage
162162
163163 public bool IsVisible => Alpha == 1 ;
164164
165- static Dictionary < NativeHandle , ProgressHUD > windowHuds = new ( ) ;
165+ static Dictionary < NativeHandle , ProgressHUD > windowHuds = new ( ) ;
166166
167167 public static ProgressHUD ? For ( UIWindow ? window )
168168 {
@@ -205,7 +205,7 @@ public UIImage InfoOutlineFullImage
205205
206206 return For ( window ) ;
207207 }
208-
208+
209209 CAShapeLayer RingLayer
210210 {
211211 get
@@ -270,13 +270,13 @@ UIView HudView
270270 Translucent = true ,
271271 BarTintColor = ProgressHUDAppearance . HudBackgroundColor ,
272272 BackgroundColor = ProgressHUDAppearance . HudBackgroundColor
273- } ;
273+ } ;
274274 }
275275
276276 hudView . AutoresizingMask =
277277 UIViewAutoresizing . FlexibleBottomMargin | UIViewAutoresizing . FlexibleTopMargin |
278278 UIViewAutoresizing . FlexibleRightMargin | UIViewAutoresizing . FlexibleLeftMargin ;
279-
279+
280280 hudView . Layer . CornerRadius = ProgressHUDAppearance . HudCornerRadius ;
281281 hudView . Layer . MasksToBounds = true ;
282282
@@ -302,7 +302,7 @@ UILabel StringLabel
302302 Font = ProgressHUDAppearance . HudFont ,
303303 Lines = 0
304304 } ;
305-
305+
306306 // ReSharper disable once ConditionIsAlwaysTrueOrFalse
307307 if ( _stringLabel . Superview == null )
308308 {
@@ -327,7 +327,7 @@ UIButton CancelHudButton
327327 _cancelHud . SetTitleColor ( ProgressHUDAppearance . HudButtonTextColor , UIControlState . Normal ) ;
328328 UserInteractionEnabled = true ;
329329 }
330-
330+
331331 // ReSharper disable once ConditionIsAlwaysTrueOrFalse
332332 if ( _cancelHud . Superview == null )
333333 {
@@ -371,10 +371,12 @@ UIActivityIndicatorView SpinnerView
371371 UIActivityIndicatorViewStyle . WhiteLarge )
372372 {
373373 HidesWhenStopped = true ,
374- Bounds = new CGRect ( 0 , 0 , 37 , 37 ) ,
374+ Bounds = new CGRect ( 0 , 0 , 37 , 37 ) ,
375375 Color = ProgressHUDAppearance . RingColor
376376 } ;
377377
378+ _spinnerView . Transform = CGAffineTransform . MakeScale ( ProgressHUDAppearance . ActivityIndicatorScale , ProgressHUDAppearance . ActivityIndicatorScale ) ;
379+
378380 // ReSharper disable once ConditionIsAlwaysTrueOrFalse
379381 if ( _spinnerView . Superview == null )
380382 HudView . AddSubview ( _spinnerView ) ;
@@ -583,7 +585,7 @@ private void ShowProgressWorker(
583585 OverlayView . Hidden = false ;
584586 _toastPosition = toastPosition ;
585587 PositionHUD ( null ) ;
586-
588+
587589 if ( Alpha != 1 )
588590 {
589591 RegisterNotifications ( ) ;
@@ -833,8 +835,8 @@ private void PositionHUD(NSNotification? notification)
833835 var orientationFrame = activeWindowBounds . Value ;
834836
835837 var activeHeight = GetActiveHeight ( ignoreOrientation , orientation , orientationFrame , keyboardHeight ) ;
836-
837- float posY = MathF . Floor ( activeHeight * 0.45f ) ;
838+
839+ float posY = MathF . Floor ( activeHeight * 0.45f ) ;
838840 float posX = ( float ) orientationFrame . Size . Width / 2f ;
839841 float textHeight = ( float ) StringLabel . Frame . Height / 2f + 40 ;
840842
@@ -844,7 +846,7 @@ private void PositionHUD(NSNotification? notification)
844846 ToastPosition . Top => textHeight ,
845847 _ => posY
846848 } ;
847-
849+
848850 CGPoint newCenter ;
849851 float rotateAngle ;
850852
@@ -1073,7 +1075,7 @@ private float AdjustSizesForText(string? text, float hudHeight, bool imageUsed,
10731075 {
10741076 if ( string . IsNullOrEmpty ( text ) )
10751077 return hudHeight ;
1076-
1078+
10771079 var lineCount = Math . Min ( 10 , text ! . Split ( '\n ' ) . Length + 1 ) ;
10781080
10791081 var stringSize = new NSString ( text ) . GetBoundingRect ( new CGSize ( 200 , 30 * lineCount ) ,
0 commit comments