Comments (8)
Have you done any experiments with this?
What could be changed to make this work? Because I don't normally use storyboards I don't have good ideas to fix this.
from ezloadingactivity.
Which view is the superview of EZLoadindActivity? You should set the superview of EZLoadingActivity to be the current view controller's view
from ezloadingactivity.
In that case when you are loading something, and the view changes behind, there are bugs and weird stuff happening. If you can catch them and fix them then feel free to send a pull request
from ezloadingactivity.
I fixed it! Since I am quite new to github, I don't know how to create a Pull Request. I'll tell you where to change.
In EZLoadingActivity.swift line 108:
center = CGPoint(x: UIScreen.mainScreen().bounds.midX, y: UIScreen.mainScreen().bounds.midY)
Change the above line to
center = CGPoint(x: topMostController!.view.bounds.midX, y: topMostController!.view.bounds.midY)
And it should work on modally presented view controllers now. For the master detail views, I haven't found a solution yet.
from ezloadingactivity.
I forgot to mention, the midX
in the above code comes from the midX
implementation in EZSwiftExtensions.
from ezloadingactivity.
Oh, you just go inside the file and click edit, then click the big button at bottom to send a pull request.
Will this affect normal loading activities? Which aren't presented modally?
from ezloadingactivity.
Just in case you didn't get the notification for pull requests.
from ezloadingactivity.
Thanks 👍
from ezloadingactivity.
Related Issues (20)
- Carthage support? HOT 3
- Active activity verification HOT 5
- Hidden in UISplitViewController HOT 1
- Swift 3 HOT 3
- Swift 3 issue HOT 2
- [WIP] travis-ci integration HOT 2
- Text is not visible with indicator HOT 3
- Warning: "Result of call to 'hide(_:animated:)' is unused" HOT 5
- Is there any easy way to present without text? HOT 7
- EZLoadingActivity: You don't have an activity instance HOT 4
- Swift Compiler Error, running Xcode 8.1 HOT 4
- there are an android version?? HOT 2
- Multiline text in loader
- What is the correct way to change the text while the loading activity is presented? HOT 1
- Result of call to 'show(_:disableUI:)' is unused HOT 1
- Swift 4.2 support? HOT 2
- add completion handler to showWithDelay()
- Feature Request: Optionally show the loading activity as a subview of the window? HOT 1
- Update Library for Swift 5 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ezloadingactivity.