Swift named tuple element completion

Not sure if this is a bug or a missing feature, so...

AppCode doesn't seem to support completion of named tuple sub-elements.

For example:

typealias BorderConstraints = (top: NSLayoutConstraint, bottom: NSLayoutConstraint, left: NSLayoutConstraint, right: NSLayoutConstraint)

private let imageViewBorderConstraints: BorderConstraints!

imageViewBorderConstraints.  <-- should get a choice of top, bottom, left, right

Also, if you manually enter the element name, it doesn't offer selections for the element's type:

imageViewBorderConstraints.top.  <-- should complete for type NSLayoutConstraint

Is this supported?  It works in Xcode.
1 comment
Comment actions Permalink

No, it's not supported yet. We plan to suport it together with the external paramters names (https://youtrack.jetbrains.com/issue/OC-10975).


Please sign in to leave a comment.