Changes in new versions / Swift 5.4

// *** before: ***
// the leading dot worked only for a plain member; as soon as a call was
// chained onto it, the type name had to be written in full
let colorOld = UIColor.red.withAlphaComponent(0.5)
let valueOld = Double.pi.rounded()

// *** in version 5.4: ***
let color: UIColor = .red.withAlphaComponent(0.5)
let value: Double = .pi.rounded()
let font: UIFont = .systemFont(ofSize: 14).withSize(20)

// the chain is allowed as long as every step keeps the same type, so the
// long modifier chains of SwiftUI stopped naming their type again