<div dir="ltr">&gt; PROBLEM: With many Apple-supplied classes, typical initializers fail to fully set up an instance for use.  Here&#39;s one example: ...<div><br></div><div>FWIW, I created a configuration operator more then a year ago, and use it in all of my Swift projects:</div><div><br></div><div><div>let task = NSTask() +=+ {</div><div>    $0.launchPath = &quot;/usr/bin/mdfind&quot;</div><div>    $0.arguments = [&quot;kMDItemDisplayName == *.playground&quot;]</div><div>    $0.standardOutput = pipe</div><div>}</div><div><br></div><div>Note you can also use the configured object in the rhs:</div><div><br></div><div><div>let questionLabel = UILabel() +=+ {</div><div>    $0.textAlignment = .Center</div><div>    $0.font =  UIFont(name:&quot;DnealianManuscript&quot;, size: 72)</div><div>    $0.text = currentQuestion.questionText</div><div>    $0.numberOfLines = 0</div></div><div>    view.addSubview($0)</div><div>}</div><div><br></div></div><div>This $0. certainly looks ugly and it would be great to be able to simplify this. I don&#39;t llike the following much though (dot-syntax can be ambiguos here, and using simply a method name is even worse):</div><div><br></div><div><div>let questionLabel = UILabel() +=+ {</div><div>    .textAlignment = .Center</div><div>    .font =  UIFont(name:&quot;DnealianManuscript&quot;, size: 72)</div><div>    .text = currentQuestion.questionText</div><div>    .numberOfLines = 0</div><div>    view.addSubview($0)</div><div>}</div></div><div><br></div><div>Actually I would be happy with something like</div><div><br></div><div><div>let questionLabel = UILabel() .{</div><div>    ..textAlignment = .Center</div><div>    ..font = UIFont(name:&quot;DnealianManuscript&quot;, size: 72)</div><div>    ..text = currentQuestion.questionText</div><div>    ..numberOfLines = 0</div><div>    view.addSubview($0)</div><div>}</div></div><div><br></div><div>Other thoughts?</div><div><br></div><div>  </div></div>