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

Cannot use instance member 'paymentTextField' within property initializer; property initializers run before 'self' is available #10

Open
SkIsArrived opened this issue Oct 12, 2017 · 2 comments

Comments

@SkIsArrived
Copy link

SkIsArrived commented Oct 12, 2017

i get this error in paystack implementation
in this line: let cardParams = paymentTextField.cardParams as PSTCKCardParams

Error:Cannot use instance member 'paymentTextField' within property initializer; property initializers run before 'self' is available

@SkIsArrived
Copy link
Author

i get this error in paystack implementation
in this line: let cardParams = paymentTextField.cardParams as PSTCKCardParams

Error:Cannot use instance member 'paymentTextField' within property initializer; property initializers run before 'self' is available

@ibrahimlawal
Copy link
Contributor

Weird. @SkIsArrived I don't have any context to look into this. It looks like you are doing stuff in an initializer rather than an event handler.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants