Если я хочу создать эффект градиента в тексте, нет проблем, как показано ниже.
Код: Выделить всё
Text("Liquid Glass")
.font(Font.system(size: 30, weight: .bold))
.multilineTextAlignment(.center)
.foregroundStyle(
LinearGradient(
colors: [.blue, .mint, .green],
startPoint: .leading,
endPoint: .trailing
)
)
Есть ли решение, позволяющее добиться такого эффекта для текста?
Подробнее здесь: https://stackoverflow.com/questions/797 ... th-swiftui
Мобильная версия