Skip to content
This repository was archived by the owner on Dec 19, 2021. It is now read-only.

Commit 16e76c5

Browse files
committed
use updated POD for iOS
1 parent d0960da commit 16e76c5

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

src/loading-indicator.ios.ts

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export class LoadingIndicator {
2525

2626
// options
2727
if (options.message) {
28-
this._hud.labelText = options.message;
28+
this._hud.label.text = options.message;
2929
}
3030

3131
if (options.progress) {
@@ -38,29 +38,35 @@ export class LoadingIndicator {
3838
(this._hud as any).mode = Mode.Indeterminate;
3939
}
4040

41-
if (options.dimBackground) this._hud.dimBackground = options.dimBackground;
41+
if (options.dimBackground) {
42+
this._hud.backgroundView.style = MBProgressHUDBackgroundStyle.SolidColor;
43+
this._hud.backgroundView.color = new Color('#000').ios;
44+
this._hud.backgroundView.alpha = 0.3;
45+
}
4246

4347
if (options.margin) this._hud.margin = options.margin;
4448

4549
if (options.userInteractionEnabled)
4650
this._hud.userInteractionEnabled = options.userInteractionEnabled;
4751

4852
if (options.backgroundColor) {
49-
this._hud.color = new Color(options.backgroundColor).ios;
53+
this._hud.bezelView.blurEffectStyle = UIBlurEffectStyle.Regular;
54+
this._hud.bezelView.backgroundColor = new Color(
55+
options.backgroundColor
56+
).ios;
5057
}
5158

5259
if (options.color) {
5360
// make activity and main label same color
54-
this._hud.activityIndicatorColor = new Color(options.color).ios;
5561
this._hud.contentColor = new Color(options.color).ios; // setting this seems to enforce coloring the activity indicator correctly
56-
this._hud.labelColor = new Color(options.color).ios;
62+
this._hud.label.textColor = new Color(options.color).ios;
5763
}
5864

5965
if (options.details) {
60-
this._hud.detailsLabelText = options.details;
66+
this._hud.detailsLabel.text = options.details;
6167
// detail label same color with 80% opacity of that color
6268
// TODO: allow specific control
63-
this._hud.detailsLabelColor =
69+
this._hud.detailsLabel.textColor =
6470
options && options.color
6571
? new Color(options.color).ios
6672
: new Color('#333').ios;

0 commit comments

Comments
 (0)