Xcode 6 with Swift super slow typing and autocompletion

后端 未结 11 1258
广开言路
广开言路 2020-11-30 19:05

Is it just me or Xcode 6 (6.0.1) with Swift seems to be super slow when you type your code, especially with autocompletion?

A normal Objective-C cla

11条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-11-30 19:23

    I found out that usually happens when you:

    • have long expressions in a single statement (see this answer)
    • mix multiple custom operators in a single expression

    The 2nd case seems to be fixed in one of the latest xcode releases. Example: I defined 2 custom operators <&&> and <||>, and used in an expression like a <&&> b <&&> c <||> d. Splitting to multiple lines solved the problem:

    let r1 = a <&&> b
    let r2 = r1 <&&> c
    let r3 = r2 <||> d
    

    I hope that your cases is covered by one of the 2 above... please post a comment either case

提交回复
热议问题