Я получаю эту ошибку, когда пытаюсь просмотреть PriceLabel, но он успешно собирается. Самое странное, что мой код не содержит никаких typealias. Я перезапустил Xcode, но без каких-либо изменений.
Я получаю ошибку в левом верхнем углу холста. 
См. Код ниже:
import SwiftUI
struct PriceLabel: View {
let price: Int
static let currencyFormatter: NumberFormatter = {
let currencyFormatter = NumberFormatter()
currencyFormatter.decimalSeparator = ","
currencyFormatter.groupingSeparator = " "
currencyFormatter.maximumFractionDigits = 0
return currencyFormatter
}()
var body: some View {
ZStack {
Path { path in
let width: CGFloat = 23
let height: CGFloat = 24
let arrowWidth = height / 2.0
let cornerRadius = height / 7.5
path.addArc(center: CGPoint(x: width - cornerRadius, y: cornerRadius), radius: cornerRadius, startAngle: Angle(degrees: -90), endAngle: .zero, clockwise: true)
path.addArc(center: CGPoint(x: width - cornerRadius, y: height - cornerRadius), radius: cornerRadius, startAngle: .zero, endAngle: Angle(degrees: 90), clockwise: true)
path.addArc(center: CGPoint(x: arrowWidth + cornerRadius, y: height - cornerRadius), radius: cornerRadius, startAngle: Angle(degrees: 90), endAngle: Angle(degrees: 135), clockwise: true)
path.addArc(center: CGPoint(x: cornerRadius, y: height / 2.0), radius: cornerRadius, startAngle: Angle(degrees: 135), endAngle: Angle(degrees: 225), clockwise: true)
path.addArc(center: CGPoint(x: arrowWidth + cornerRadius, y: cornerRadius), radius: cornerRadius, startAngle: Angle(degrees: 225), endAngle: Angle(degrees: -90), clockwise: true)
path.closeSubpath()
}
.foregroundColor(.red)
Text("\(type(of: self).currencyFormatter.string(from: NSNumber(value: price))!):-")
.foregroundColor(.white)
}
}
}
struct PriceLabel_Previews: PreviewProvider {
static var previews: some View {
PriceLabel(price: 25)
}
}
Заранее спасибо!