Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Commit

Permalink
fix: alignment and color of ui activity indicator (#1741)
Browse files Browse the repository at this point in the history
  • Loading branch information
saeedbashir committed Mar 28, 2023
1 parent 7293ab2 commit 70f19dc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/OEXRegistrationViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ - (void)initializeViews {

////Create progrssIndicator as subview to btnCreateAccount
self.progressIndicator = [[UIActivityIndicatorView alloc] initWithFrame:CGRectMake(0, 0, 20, 20)];
[self.progressIndicator setColor:_environment.styles.neutralWhiteT];
[self.registerButton addSubview:self.progressIndicator];
[self.progressIndicator hidesWhenStopped];
self.optionalFieldsSeparator = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"separator3"]];
Expand Down Expand Up @@ -429,7 +430,7 @@ - (void)viewDidLayoutSubviews {
offset = offset + self.agreementTextView.frame.size.height;

[self.registerButton setFrame:CGRectMake(horizontalSpacing, offset, contentWidth, 40)];
const int progressIndicatorCenterX = [self isRTL] ? 40 : self.registerButton.frame.size.width - 40;
const int progressIndicatorCenterX = [self isRTL] ? 20 : self.registerButton.frame.size.width - 20;
self.progressIndicator.center = CGPointMake(progressIndicatorCenterX, self.registerButton.frame.size.height / 2);
[self.scrollView addSubview:self.registerButton];
offset = offset + self.registerButton.frame.size.height + 30;
Expand Down

0 comments on commit 70f19dc

Please sign in to comment.