Просмотр исходного кода

Change the default indicator style for macOS 26

Due to the .mini and .small style now crashes on macOS 26
onevcat 4 месяцев назад
Родитель
Сommit
aef2e8674e
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      Sources/Views/Indicator.swift

+ 1 - 1
Sources/Views/Indicator.swift

@@ -152,7 +152,7 @@ final class ActivityIndicator: Indicator {
     init() {
     init() {
         #if os(macOS)
         #if os(macOS)
             activityIndicatorView = NSProgressIndicator(frame: CGRect(x: 0, y: 0, width: 16, height: 16))
             activityIndicatorView = NSProgressIndicator(frame: CGRect(x: 0, y: 0, width: 16, height: 16))
-            activityIndicatorView.controlSize = .small
+            activityIndicatorView.controlSize = .regular
             activityIndicatorView.style = .spinning
             activityIndicatorView.style = .spinning
         #else
         #else
             let indicatorStyle: UIActivityIndicatorView.Style
             let indicatorStyle: UIActivityIndicatorView.Style