0

I'm trying to customize the Parse Log In View Controller (adding or removing fields) in my new Swift Project.

First I tried to add this (as said in official parse tutorial) :

logInViewController.fields = PFLogInFieldsUsernameAndPassword | PFLogInFieldsLogInButton | PFLogInFieldsSignUpButton | PFLogInFieldsPasswordForgotten

This was the error returned:

'PFLoginFields' is not convertible to 'Bool'

Next, I tried the solution mentioned here: Swift: Could not find an overload for '|' that accepts the supplied arguments

This solution returned the following error on Xcode 6 beta 4 :

'PFLoginFields' does not have a member named 'value'

Anyone have a solution working with this Xcode 6b4 ?

(sorry for my English, not my mother language)

1

1 Answer 1

1

Parse changed the names in their last update:

use

PFLogInFields.UsernameAndPassword 

instead of

PFLogInFieldsUsernameAndPassword

I also experienced some other problems after applying this change but give it a try and update us how it went!

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.