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

fix: alignment and color of ui activity indicator #1741

Merged
merged 1 commit into from
Mar 28, 2023
Merged
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
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