-
Notifications
You must be signed in to change notification settings - Fork 55
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
required public init() #39
Comments
the intention is that the empty initialiser shouldn't be used, instead when created the focusentity should already have a reference to the ARView: https://maxxfrazer.github.io/FocusEntity/documentation/focusentity/focusentity/init(on:focus:) |
Thank you for your reply. I wrote like below and the whole code were builded successfully. class CustomARView: ARView{ Nevertheless the error, Thread 1: Fatal error: init() has not been implemented, occurred on FocusEntity.swift's line 288. It would be grateful if you could help me with this problem. |
Hi, I remember in Ryan's video (the one you linked), he does specify that he's using a specific package version, which is older than the current latest version of Check out the example which is included in this repo for up-to-date usage, otherwise make sure you're using the same version as in the video. |
Thank you Maxx, I've imported the same version of package and builded successfully. However I cannot see a square focus on my ipad. |
Ryan runs through the additional steps after initialisation in his video. |
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
this occurs an error “Thread 1: Fatal error: init(coder:) has not been implemented”
Expected behavior
shouldn't it be changed to like below?
required public init?(coder decoder: NSCoder){
fatalError("init(coder:) has not been implemented")
}
Screenshots
If applicable, add screenshots to help explain your problem.
Environment:
Additional context
The text was updated successfully, but these errors were encountered: