Skip to content
This repository was archived by the owner on Feb 1, 2019. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions HTProgressHUD/HTProgressHUD.m
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,14 @@ - (instancetype)initWithFrame:(CGRect)frame
self.textLabel.textAlignment = NSTextAlignmentCenter;
self.textLabel.font = [UIFont boldSystemFontOfSize:14.0f];
self.textLabel.numberOfLines = 1;
[self.hudView addSubview:self.textLabel];
if([self.hudView isKindOfClass:[UIVisualEffectView class]])
{
[((UIVisualEffectView *)self.hudView).contentView addSubview:self.textLabel];
}
else
{
[self.hudView addSubview:self.textLabel];
}

// Appearance Options
self.indicatorView = [HTProgressHUDIndicatorView indicatorViewWithType:HTProgressHUDIndicatorTypeActivityIndicator];
Expand Down Expand Up @@ -513,7 +520,14 @@ - (void)setIndicatorView:(HTProgressHUDIndicatorView *)indicatorView
{
[_indicatorView removeFromSuperview];
_indicatorView = indicatorView;
[self.hudView addSubview:indicatorView];
if([self.hudView isKindOfClass:[UIVisualEffectView class]])
{
[((UIVisualEffectView *)self.hudView).contentView addSubview:indicatorView];
}
else
{
[self.hudView addSubview:indicatorView];
}
[self updateViews];
}

Expand Down