How can I change the textual representation displayed for a type in Swift?

后端 未结 6 928
广开言路
广开言路 2020-11-29 21:07

How can I modify the textual output that gets displayed in string interpolation?

The Printable protocol looks the most obvious but it\'s ignored in both

6条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-29 21:15

    If you open the console view : View -> Assistant Editor -> Show Assistant Editor you can see expected print lines Checked in xCode 6.3.2 with Yosimite 10.10

    enter image description here

提交回复
热议问题