Comments (5)
@jzeferino
I don't know well what how is implemented inside ImageScrollView.
In your code, imageScrollView has not laid out yet.
So, even if you call display
, it does not display the image.
Could you try to add self.view.layoutIfNeeded
before calling display(:)
.
from imagescrollview.
@jzeferino you need to initialize scrollView like this let imageScrollView = ImageScrollView(frame: self.view.bounds)
from imagescrollview.
that don't make sense when using autolayout. thats the type of code one write without using autolayout. if you see the code, the constraints should make the same effect.
from imagescrollview.
But, If ImageScrollView handles themselves changed size, calling layoutIfNeeded
will not solve this problem.
from imagescrollview.
@jzeferino
I don't know well what how is implemented inside ImageScrollView.
In your code, imageScrollView has not laid out yet.
So, even if you calldisplay
, it does not display the image.Could you try to add
self.view.layoutIfNeeded
before callingdisplay(:)
.
Yes, please call self.view.layoutIfNeeded
before display(image:)
to make ImageScrollView adjust its size. Or call display(image:)
in viewDidAppear.
from imagescrollview.
Related Issues (20)
- Change orientation suggestion HOT 1
- can you support another gesture ? HOT 3
- Image in tableview sometimes shows dragged down
- Using programmatically without storyboard HOT 2
- Problems with iOS 13.3? HOT 5
- Image position is reset after tilt HOT 1
- Landscape Image not centered vertically (iOS 13.3) HOT 3
- How to set Placeholder Image while loading image from SDWebImage ? HOT 1
- Does this library support remote image Urls ? if so how to add multiple remote urls HOT 1
- DidChangeOrientation is fired when notification bar is swiped down HOT 3
- FeatureRequest: zoomed Image as variable HOT 1
- swiftui support? HOT 3
- May I know the purpose of 0.999 technique? HOT 1
- How to hide image , or set image content to nil HOT 3
- Random auto zoom-out issues HOT 5
- Tap Issue
- Get coordinates of the image on long press HOT 1
- my image update every second problem
- Is there a way integrate Kingfisher (or any image loading library) with ImageScrollView
- Image captured shows wrong orientation when open
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 imagescrollview.