diff --git a/AirpodsPro Battery/AirpodsPro Battery/Views/BatteryView.swift b/AirpodsPro Battery/AirpodsPro Battery/Views/BatteryView.swift index 591945e..20e7bac 100644 --- a/AirpodsPro Battery/AirpodsPro Battery/Views/BatteryView.swift +++ b/AirpodsPro Battery/AirpodsPro Battery/Views/BatteryView.swift @@ -30,7 +30,12 @@ class BatteryView: NSView { leftBatteryValue.stringValue = "\(viewModel.leftBatteryValue) %" rightBatteryValue.stringValue = "\(viewModel.rightBatteryValue) %" - caseBatteryValue.stringValue = "\(viewModel.caseBatteryValue) %" + + if viewModel.caseBatteryValue == 0 { + caseBatteryValue.stringValue = "Place AirPods\ninside the case" + } else { + caseBatteryValue.stringValue = "\(viewModel.caseBatteryValue) %" + } leftBatteryStack.isHidden = viewModel.connectionStatus == .connected ? false : true rightBatteryStack.isHidden = viewModel.connectionStatus == .connected ? false : true diff --git a/AirpodsPro Battery/AirpodsPro Battery/Views/MainMenu.xib b/AirpodsPro Battery/AirpodsPro Battery/Views/MainMenu.xib index 8ef0b98..f730eb7 100755 --- a/AirpodsPro Battery/AirpodsPro Battery/Views/MainMenu.xib +++ b/AirpodsPro Battery/AirpodsPro Battery/Views/MainMenu.xib @@ -13,23 +13,23 @@ - + - + - - + + - + - + @@ -37,31 +37,31 @@ - + - + - + - + - + - + - + - - + + @@ -88,25 +88,25 @@ - + - + - + - + - + - - + + @@ -143,25 +143,25 @@ - + - + - + - + - + - - + + @@ -273,7 +273,7 @@ - +