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

Crash in ImageBuilder #33

Open
Witzeneder opened this issue Aug 28, 2018 · 1 comment
Open

Crash in ImageBuilder #33

Witzeneder opened this issue Aug 28, 2018 · 1 comment

Comments

@Witzeneder
Copy link

    func addTile(x: Int, y: Int, image: UIImage) {
        context?.draw(image.cgImage!, in: CGRect(origin: CGPoint(x: CGFloat(x) * tileSize.width, y: CGFloat(Int(imageSize.height / tileSize.height) - y - 1) * tileSize.height), size: tileSize))
    }

The force unwrap crashes sometimes

@avi-c
Copy link
Contributor

avi-c commented Aug 28, 2018

Please check out my comment in issue #34

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

2 participants