misc: delete ProgressButtonSize class

This commit is contained in:
mrFq1
2023-05-23 23:47:43 +08:00
parent f0edccd4fb
commit ff83020c00

View File

@@ -7,16 +7,6 @@
import SwiftUI import SwiftUI
import AppKit import AppKit
//class ProgressButtonSize: NSObject {
// static func width(_ titles: [String]) -> CGFloat {
//
// let str = titles.max() ?? ""
// let w = str.size(withAttributes: [.font: Font.system(size: 13)]).width
//
// return w + 12 + 8*3
// }
//}
struct ProgressButton: View { struct ProgressButton: View {
@State var title: String @State var title: String