Skip to content

Conversation

@Joohansson
Copy link
Contributor

Will allow changing tileSize from swift code and also set correct size in JCTiledLayer (or tiles will have wrong resolution on the phone).
Tested with 512x512 tiles

Use like this:
let scrollView = JCTiledScrollView(frame: self.view.frame, contentSize: imageSize)
scrollView.tiledView.tileSize = CGSize(width: CGFloat(256.0), height: CGFloat(256.0))

Will allow changing tileSize from swift code and also set correct size in JCTiledLayer.
Tested with 512x512 tiles

Use like this:
let scrollView = JCTiledScrollView(frame: self.view.frame, contentSize: imageSize)
scrollView.tiledView.tileSize = CGSize(width: CGFloat(256.0), height: CGFloat(256.0))
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

Successfully merging this pull request may close these issues.

1 participant