Comments (3)
Have you observed any ill behavior because of this?
self.possibleDrawerDirection
cannot be clear on both the horizontal and vertical directions. If so, the behavior is completely undefined. You'd be patching an analyzer warning, but not actually correcting behavior. It may be more correct to assert that possibleDrawerDirection
must have either horizontal or vertical components.
from msdynamicsdrawerviewcontroller.
I am testing MSDynamicsDrawerViewController and I haven't see any ill behavior yet.
When I evaluate source code, I always run the Clang Static Analyzer on it before doing anything else. When I see source code containing hundreds of memory leaks or other analyzer warnings I know the code is bad and it is not worth looking at it.
Regarding the issue, I would initialize panDelta to 0.0 to make sure there is no undefined behavior and to avoid the analyzer warning. I haven't looked at 'self.possibleDrawerDirection' but having an assert for undefined cases is always good.
from msdynamicsdrawerviewcontroller.
Fixed in 1.3.2
.
from msdynamicsdrawerviewcontroller.
Related Issues (20)
- Wrong topLayoutGuide.length
- iOS 8: Toggling in-call status bar causes odd rendering behavior when rotating to landscape/portrait
- Null
- Snapping after bounce HOT 3
- How to cancel open Pan Gesture on certain VC HOT 1
- How to set width for DrawerViewController
- UINavigationController back gesture reenabling
- UITableView swipe to delete not working
- Overwrites the supported interface orientations of Drawer View Controllers. HOT 1
- Explicit call to [CATransaction flush] results in high cpu running time
- How can i update the main view controller HOT 2
- The Example app (non-storyboard target) doesn't work when built using the iOS 9 as the base SDK.
- Do you have this wonderful library for Swift? HOT 2
- A black screen when loading the controller HOT 1
- Fix iOS8 Warnings in MSDynamicsDrawerViewController HOT 1
- Issue: EXC_BAD_ACCESS KERN_INVALID_ADDRESS HOT 2
- Helpppp
- Is this library still maintained? HOT 2
- How to close drawer with manualy added close button? HOT 1
- why the size of view control that open the side menu is different between device
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 msdynamicsdrawerviewcontroller.