Quantcast
Channel: Active questions tagged strikethrough - Stack Overflow
Viewing all articles
Browse latest Browse all 88

SwiftUI - Strikethrough on TextField

$
0
0

Does anyone know how to achieve strikethrough effect that is constantly displayed in pure TextField ?

Sample code:

@State var textFieldText: Stringvar body: some View {    TextField("some_prompt", text: $textFieldText)        .strikethrough()}

This compiles without problems, but it looks like this modifier is completely ignored, both in Previews and if you run the "app".


Viewing all articles
Browse latest Browse all 88

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>