Intellisense sorting and not defaulting

If you notice in the picture below, I have a class called DataController and my variable is named dataController. When I am trying to refer to my variable, the class shows first even though I have typed it with a lower case d. Is there a setting I need to do to make this work properly or is this just one of those things XCode does?

That's effectively the usual behavior. And it is logical.

Consider the following:

    struct TEST {
        var hello = ""
        static func printHello() {
            print("hello")
        }
    }

In a func (onChange for instance), you could start typing te

        var test = TEST(hello: "Hello")
        TEST.printHello()

So it is normal that autocompletion proposes both TEST (S, as it is a struct) and test (with L if local var, V if a var declared outside) ; autocompletion ignores lower/uppercase on purpose.

Intellisense sorting and not defaulting
 
 
Q