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

why not code hinting while use Then #14

Closed
zixun opened this issue Jan 8, 2016 · 23 comments
Closed

why not code hinting while use Then #14

zixun opened this issue Jan 8, 2016 · 23 comments

Comments

@zixun
Copy link

zixun commented Jan 8, 2016

why not code hinting by xcode while use Then

@devxoul
Copy link
Owner

devxoul commented Jan 9, 2016

I think Xcode is silly.

@KimDarren
Copy link

👍 to this issue..
Is there any great solution instead of memorizing the code?

@kos9kus
Copy link

kos9kus commented May 30, 2016

"I think Xcode is silly." sounds like a pun =)
Anyway, it's real downside while using this terrific lib.
Could it have some workarounds or tricks ?

@PabloLerma
Copy link

You can create your own code snippet like this:

screen shot 2016-08-10 at 21 25 42

@jedmund
Copy link

jedmund commented Sep 1, 2016

If people are having the same issue as me, I think the concern is more with writing properties inside of the Then block, not necessarily the syntax of the Then block.

In that case, no, I don't think there's anything that can be done, but I'd love to be proven wrong!

@devxoul
Copy link
Owner

devxoul commented Sep 24, 2016

I created an issue on Swift JIRA: https://bugs.swift.org/browse/SR-2750 (please vote on JIRA issue!)

@Natai
Copy link

Natai commented Sep 30, 2016

@devxoul I created a label with Then, I found that Xcode will hint if the label is a local variable,but Xcode will not if the label is a property. What happend...

@devxoul
Copy link
Owner

devxoul commented Sep 30, 2016

@Natai yeah, thanks to @txaiwieser (#38) we found that code hinting is now not working in class scope.

@jackhub
Copy link

jackhub commented Sep 30, 2016

still not working if the label is a property

@devxoul
Copy link
Owner

devxoul commented Sep 30, 2016

Oh my god, there was a mistypo: now working -> not working
Sorry for confusing 😅

@bobleesj
Copy link

Collaboration Needed

If you want to use auto-completion, please visit Swift Bug and upvote. Good for both of us.

@acecilia
Copy link

Still not autocompleting with the new xCode :(

@LeeBigRay
Copy link

I tried all of what you say ,but it did not been solved

@bobleesj
Copy link

bobleesj commented Dec 5, 2017 via email

@KimDarren
Copy link

Since Xcode 9 and Swift 4, the auto-completion is working well for me.

@acecilia
Copy link

acecilia commented Dec 5, 2017

As @KimDarren said, with xCode 9.1 (9B55) and Swift 4, autocompletion is working at class level for me. Yay!! @devxoul your issue (https://bugs.swift.org/browse/SR-2750) is still open though.

captura de pantalla 2017-12-05 a las 18 23 32

@devxoul
Copy link
Owner

devxoul commented Dec 5, 2017

@KimDarren @acecilia, have you tested using Then?

@acecilia
Copy link

acecilia commented Dec 5, 2017 via email

@KimDarren
Copy link

Not yet too

@acecilia
Copy link

acecilia commented Dec 6, 2017

@devxoul just did. Seems to be working:
captura de pantalla 2017-12-06 a las 16 27 00

@devxoul
Copy link
Owner

devxoul commented Jan 10, 2018

I've found an interesting thing. It works without a type annotation and it doesn't work with a type annotation(: UILabel).

With type annotation

screen shot 2018-01-11 at 4 13 16 am

Without type annotation

screen shot 2018-01-11 at 4 13 23 am

@acecilia
Copy link

Further discussion here: https://bugs.swift.org/browse/SR-2750

@devxoul
Copy link
Owner

devxoul commented Jun 13, 2020

This is fixed in Xcode 11.

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