Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UIActivityIndicatorView Always on top left #57

Closed
erickva opened this issue May 24, 2017 · 5 comments
Closed

UIActivityIndicatorView Always on top left #57

erickva opened this issue May 24, 2017 · 5 comments

Comments

@erickva
Copy link

erickva commented May 24, 2017

UIActivityIndicatorView as loadingView Always on top left even when it's set with a larger frame, it is always small in the corner.
Is there a work around this? As the insets method applies for all the state views.

@aschuch
Copy link
Owner

aschuch commented May 24, 2017

Are you using the latest version from master?
Can you post some example code?

@erickva
Copy link
Author

erickva commented May 24, 2017

3.0, sure, in my test I am simply giving it a frame and assigning it to the loadingView:

let loading = UIActivityIndicatorView(frame: CGRect(x: 100, y: 100, width: 400, height: 400))
loading.startAnimating()
loadingView = loading

But regardless of the size of the View it is always in the top left corner:
screen shot 2017-05-25 at 9 03 53 am

@aschuch
Copy link
Owner

aschuch commented May 25, 2017

Hm, please try with the latest master branch, there are some changes in there that did not make it into an official release yet. Are you using a vanilla UIViewController or UITableViewController/UICollectionViewController?

@erickva
Copy link
Author

erickva commented May 25, 2017

It works perfectly with the master branch! Thank you very much aschuch!

@erickva erickva closed this as completed May 25, 2017
@harishgonnabattula
Copy link

harishgonnabattula commented Aug 7, 2017

@aschuch Can you release a new version from the master branch which will includes these changes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants