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

How can show UIView and get event for UIButton #4

Open
yogendragirase55 opened this issue Mar 6, 2019 · 0 comments
Open

How can show UIView and get event for UIButton #4

yogendragirase55 opened this issue Mar 6, 2019 · 0 comments

Comments

@yogendragirase55
Copy link

Can we pass UIView below code . currently you have convert UIView to image. I need to pass UIView and get button events. How is it possible ?

func view(_ view: ARSKView, nodeFor anchor: ARAnchor) -> SKNode? {
        // Create and configure a node for the anchor added to the view's session.
        let annots = annotations.filter {
            $0.identifier! == anchor.identifier
        }
        if annots.count > 0 {
            let annot = annots.first
            let image = annot?.getTooltipImage()
            let tooltip = SKTexture(image: image!)
            let sprite = SKSpriteNode(texture: tooltip)
            sprite.name = "poi"
            return sprite
        }
        return nil
    }
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

1 participant