๐Ÿžmismatching types

โ•ฑ๐Ÿšง under construction

SwiftUI โŸฉ view โŸฉ modifier โŸฉ rendering โŸฉ .clipShape โŸฉ ๐Ÿž mismatching types

Text("Clipped text in a circle")
    .frame(width: 50, height: 50)
    // ๐Ÿž mismatching types
    .clipShape(isOn ? Circle() : Capsule())

Result values in '?:' expression have mismatching types 'some Shape' (Circle) and 'some Shape' (Capsule).

๐Ÿ‘‰ ่งฃๆฑบๆ–นๆกˆ๏ผš AnyShape, ็”จ enum ๅฐ่ฃไธๅŒๅž‹ๅˆฅ, has non-Sendable type

Last updated