---
# System prepended metadata

title: 這是標題

---

# 這是標題

**這是粗體**
**快捷鍵**

> 第一層
>> 第二層

作文是現在==學生==避不開的一道難關，由於普遍缺少相關的訓練，導致孩子沒有寫作硬實力。這篇文章將會教你考試作文需要的技巧，

```swift=
import SwiftUI

struct ContentView: View {
    @State var isImageChanged: Bool = false
    @State var colorRed: Double = 1.0
    @State var colorGreen: Double = 1.0
    @State var colorBlue: Double = 1.0
    
    var body: some View {
        ZStack {
            
            Color(red: colorRed, green: colorGreen, blue: colorBlue)
                .ignoresSafeArea()
            
            VStack {
                Spacer()
                
                if isImageChanged {
                    Image("test")
                        .resizable()
                        .frame(width: 100, height: 100)
                        .scaledToFit()
                        .padding()
                } else {
                    Image("oldLogo")
                        .resizable()
                        .frame(width: 100, height: 100)
                        .scaledToFit()
                        .padding()
                }
                
                HStack {
                    Text("R: \(Int(colorRed*255))")
                    Text("G: \(Int(colorGreen*255))")
                    Text("B: \(Int(colorBlue*255))")
                }
                .padding()
                
                Spacer()
                
                Toggle(isOn: $isImageChanged.animation(.spring()) ) {
                    Text("切換圖片")
                }
                .padding()
                
                HStack {
                    Text("R: ")
                        .font(.title2)
                    Slider(value: $colorRed)
                }
                .padding()
                .background(Color.gray.opacity(0.3))
                .cornerRadius(20)

                
                HStack {
                    Text("G: ")
                        .font(.title2)
                    Slider(value: $colorGreen)
                }
                .padding()
                .background(Color.gray.opacity(0.3))
                .cornerRadius(20)
                
                HStack {
                    Text("B: ")
                        .font(.title2)
                    Slider(value: $colorBlue)
                }
                .padding()
                .background(Color.gray.opacity(0.3))
                .cornerRadius(20)
                
            }
            .padding()
        }
    }
}
```