MONActivityIndicatorView
MONActivityIndicatorView copied to clipboard
indicator is not placed in center of view
following is my configuration, but the indicator is not placed in center of view actually.
self.indicatorView = [[MONActivityIndicatorView alloc] init];
self.indicatorView.delegate = self;
self.indicatorView.center = self.view.center;
self.indicatorView.numberOfCircles = 7;
self.indicatorView.radius = 5;
self.indicatorView.internalSpacing = 3;
self.indicatorView.duration = 0.5;
self.indicatorView.delay = 0.5;
add some layout constraints for centering the view
Same problem here, after last update...
See example here on placing the indicator at the center of a certain view.
Adding constraints works here but we should absolutely be able to center the indicatorView with coordinates. This is a pretty major issue.
The 0.3 update made this pod useless for my app, can't center without constraints
Same problem with centering. To many efforts to make it centeret. Think it major enough drawback.
Same problem
I face the same problem, can not place it in the center.
An easy solution to this problem is:
activityIndicator.translatesAutoresizingMaskIntoConstraints = false
NSLayoutConstraint.activateConstraints([
activityIndicator.centerXAnchor.constraintEqualToAnchor(view.centerXAnchor),
activityIndicator.centerYAnchor.constraintEqualToAnchor(view.centerYAnchor)
])