import SwiftUI

struct ContentView: View {
    @State private var textSize: Double = 20

    var body: some View {
        VStack {
            Slider(value: $textSize, in: 10...50)
                .padding()
            Text("Adjustable Text")
                .font(.system(size: CGFloat(textSize)))
        }
        .padding()
    }
}