diff --git a/Pareto Security.xcodeproj/xcshareddata/xcschemes/Pareto Security.xcscheme b/Pareto Security.xcodeproj/xcshareddata/xcschemes/Pareto Security.xcscheme index c814889..c9d48cc 100644 --- a/Pareto Security.xcodeproj/xcshareddata/xcschemes/Pareto Security.xcscheme +++ b/Pareto Security.xcodeproj/xcshareddata/xcschemes/Pareto Security.xcscheme @@ -62,6 +62,11 @@ BlueprintName = "ParetoSecurityTests" ReferencedContainer = "container:Pareto Security.xcodeproj"> + + + + diff --git a/Pareto/Info.plist b/Pareto/Info.plist index c25b729..85132a3 100644 --- a/Pareto/Info.plist +++ b/Pareto/Info.plist @@ -26,7 +26,7 @@ CFBundleVersion - 4026 + 4085 LSApplicationCategoryType public.app-category.utilities LSMinimumSystemVersion diff --git a/Pareto/Views/StatusBarIcon.swift b/Pareto/Views/StatusBarIcon.swift index 8fdea64..e77aaa3 100644 --- a/Pareto/Views/StatusBarIcon.swift +++ b/Pareto/Views/StatusBarIcon.swift @@ -19,13 +19,28 @@ class StatusBarModel: ObservableObject { struct StatusBarIcon: View { @ObservedObject var statusBarModel: StatusBarModel + let imageNames: [String] = [StatusBarState.ok.rawValue, StatusBarState.warning.rawValue] var body: some View { ZStack { // Moves in from leading out, out to trailing edge. - Image(statusBarModel.state.rawValue) - .resizable() - .frame(width: 22, height: 20, alignment: .center) + if statusBarModel.isRunning { + ZStack { + Image(statusBarModel.state.rawValue) + .resizable() + .blur(radius: 0.8) + .frame(width: 22, height: 20, alignment: .center) + ProgressView() + .frame(width: 5.0, height: 5.0) + .blur(radius: 0.8) + .scaleEffect(x: 0.5, y: 0.5, anchor: .center) + } + + } else { + Image(statusBarModel.state.rawValue) + .resizable() + .frame(width: 22, height: 20, alignment: .center) + } }.frame(width: 26, height: 20, alignment: .center).padding(.horizontal, 2) .padding(.vertical, 2)