为什么在Swift 3中使用字符串插值时,隐式地展开选项而不是展开?var str: String!optional: \(str)")The following should not be printed as an optional: Optional("Hello")
当然,我可以将字符串与+操作符连接起来,但是我几乎在我的应用程序中到处使用字
我想重现新的Swift日志功能的行为,其中字符串中的插值值显示为<private>,而不是我在应用程序中使用的自定义记录器的实际值。number: \(accountNumber)")
// User account number: 12345 ← leaking personal information 相反,我想