Animate placeholder transition #26
Answered
by
NuPlay
stanislavlysenko0912
asked this question in
Q&A
-
How to animate placeholder change? Can i do this? If can, how 🙂? |
Beta Was this translation helpful? Give feedback.
Answered by
NuPlay
Feb 7, 2023
Replies: 1 comment
-
I added transition modifier in version 2.1.2 #27 import SwiftUI
import RichText
struct RichText_Test: View {
@State private var html = ""
var body: some View {
ScrollView{
RichText(html: html)
.placeholder {
Text("loading")
}
.transition(.easeOut)
}
}
}
struct RichText_Test_Previews: PreviewProvider {
static var previews: some View {
RichText_Test()
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
stanislavlysenko0912
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I added transition modifier in version 2.1.2 #27
You can use it like this 😆