Back

Instance member 'onRegister' cannot...

  • 0
  • Apple
a3aan54
10 Feb, 2024, 10:40

I'm trying to implement my first SwiftUI project. After following the installation process of the Start with Apple page, I get the error when hitting the run button on the xcode project;

Instance member 'onRegister' cannot be used on type 'Appwrite'; did you mean to use a value of this type instead? in the ContentView.swift section.

I would greatly appreciate any suggestion.

Adriaan

TL;DR
Issue: Error "Instance member 'onRegister' cannot be used on type 'Appwrite'" in SwiftUI project Solution: The error suggests that you are trying to use the instance member 'onRegister' on the type 'Appwrite', which is not allowed. To fix this issue, make sure you are accessing 'onRegister' on an instance of the 'Appwrite' type, rather than on the type itself. Double-check your code in the ContentView.swift file and ensure that you are correctly referencing the instance where 'onRegister' is defined.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more