1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
| //
| // TextBtnStyle.swift
| // 默认文本按钮点击样式
| // Created by 倪路朋 on 1/17/23.
| //
|
| import Foundation
| import SwiftUI
|
|
| struct TextBtnStyle: ButtonStyle {
| func makeBody(configuration: Configuration) -> some View {
| configuration.label
| .scaleEffect(configuration.isPressed ? 0.95 : 1.0)
| .opacity(configuration.isPressed ? 0.8 : 1.0)
| }
| }
|
|