Skip to content

Commit 428c066

Browse files
committed
Reduce BatteryView hang and update localizations
1 parent 833f3f5 commit 428c066

8 files changed

Lines changed: 26 additions & 24 deletions

File tree

InfiniLink/Components/Chart/ChartViewComponents.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ struct HorizontalLines: View {
5151
}
5252
}
5353

54-
struct verticalLines: View {
54+
struct VerticalLines: View {
5555
@Environment(\.colorScheme) var colorScheme
5656

5757
var numbLines: Int

InfiniLink/Core/Home/Battery/Chart/BatteryChartComponents.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,11 @@ struct BatteryContentView: View {
5252
HStack {
5353
GeometryReader { (geometry) in
5454
VStack {
55+
Divider()
5556
ZStack {
56-
verticalLines(numbLines: barLineNumb[pickerSelection], sizes: geometry.size, height: 100)
57-
HorizontalLines(numbLines: 5, sizes: geometry.size, height: 100)
57+
// TODO: Fix lag due to these lines without removing them
58+
// VerticalLines(numbLines: barLineNumb[pickerSelection], sizes: geometry.size, height: 100)
59+
// HorizontalLines(numbLines: 5, sizes: geometry.size, height: 100)
5860

5961
VStack {
6062
setGraphType(data: data)

InfiniLink/Core/Home/Heart/Chart/HeartChartComponents.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ struct HeartContentView: View {
9696
//let bar_width = (Int(geometry.size.width - 2) - (Int(barSpacing[pickerSelection]) * (numberOfBars[pickerSelection] - 1)))
9797
VStack {
9898
ZStack {
99-
verticalLines(numbLines: barLineNumb[pickerSelection], sizes: geometry.size, height: 160)
99+
VerticalLines(numbLines: barLineNumb[pickerSelection], sizes: geometry.size, height: 160)
100100
HorizontalLines(numbLines: 5, sizes: geometry.size, height: 160)
101101
HStack(alignment: .center) {
102102
//let hour = (Calendar.current.component(.hour, from: Date()) - Int(floor(Double(Calendar.current.component(.hour, from: Date())) / 3.0) * 3.0)) * (numberOfBars[pickerSelection] / 24)

InfiniLink/en.lproj/Localizable.strings

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,10 @@
158158
"welcome_to_version" = "Welcome to version";
159159
"whats_new_1" = "The UI has been completely refreshed!";
160160
"whats_new_2" = "Apple HealthKit is now supported to sync step count and heart rate data with Apple Health.";
161-
"whats_new_3" = "InfiniLink users can now upload and delete files on their watch's Bluetooth filesystem, as well as upload external resource packages. Users can also convert images to the supported image format within the app.";
162-
"whats_new_4" = "Weather support has also been added in this release, using the National Weather Service API (for users in the United States) and the WeatherAPI API for users outside of the United States. The weather data is pushed using InfiniTime 1.14's new Simple Weather Service. Please make sure your InfiniTime device is updated to InfiniTime 1.14 to use the implementation.";
163-
"whats_new_5" = "This release also contains some new localizations. Please note that not all localizations have been updated for the new UI. If you're able to assist with localizations, please get in touch with us on the GitHub repo, or feel free to submit a pull request with localizations. Any help in this capacity is much appreciated!";
164-
"whats_new_6" = "Huge thanks to @JenJell on GitHub for implementing external resource support, weather support, and much more!";
161+
"whats_new_3" = "InfiniLink users can now upload and delete files on their watch's Bluetooth filesystem, as well as upload external resource packages. Users can also convert images to the format supported by InfiniTime, within the app.";
162+
"whats_new_4" = "Weather support has also been added in this release, using the National Weather Service API (for users in the United States) and the WeatherAPI API for users outside of the United States. The weather data is pushed using InfiniTime's new Simple Weather Service. Requires InfiniTime 1.14 or newer.";
163+
"whats_new_5" = "This release also contains some new localizations. Please note that not all the localizations are complete. If you're able to assist with them, please feel free to submit a pull request with the updated localizations!";
164+
"whats_new_6" = "Special thanks to @JenJell on GitHub for implementing external resource support, weather support, and much more!";
165165

166166
// - Onboarding
167167
"welcome_to_InfiniLink" = "Welcome to InfiniLink!";

InfiniLink/fr.lproj/Localizable.strings

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,10 @@
158158
"welcome_to_version" = "Welcome to version";
159159
"whats_new_1" = "The UI has been completely refreshed!";
160160
"whats_new_2" = "Apple HealthKit is now supported to sync step count and heart rate data with Apple Health.";
161-
"whats_new_3" = "InfiniLink users can now upload and delete files on their watch's Bluetooth filesystem, as well as upload external resource packages. Users can also convert images to the supported image format within the app.";
162-
"whats_new_4" = "Weather support has also been added in this release, using the National Weather Service API (for users in the United States) and the WeatherAPI API for users outside of the United States. The weather data is pushed using InfiniTime 1.14's new Simple Weather Service. Please make sure your InfiniTime device is updated to InfiniTime 1.14 to use the implementation.";
163-
"whats_new_5" = "This release also contains some new localizations. Please note that not all localizations have been updated for the new UI. If you're able to assist with localizations, please get in touch with us on the GitHub repo, or feel free to submit a pull request with localizations. Any help in this capacity is much appreciated!";
164-
"whats_new_6" = "Huge thanks to @JenJell on GitHub for implementing external resource support, weather support, and much more!";
161+
"whats_new_3" = "InfiniLink users can now upload and delete files on their watch's Bluetooth filesystem, as well as upload external resource packages. Users can also convert images to the format supported by InfiniTime, within the app.";
162+
"whats_new_4" = "Weather support has also been added in this release, using the National Weather Service API (for users in the United States) and the WeatherAPI API for users outside of the United States. The weather data is pushed using InfiniTime's new Simple Weather Service. Requires InfiniTime 1.14 or newer.";
163+
"whats_new_5" = "This release also contains some new localizations. Please note that not all the localizations are complete. If you're able to assist with them, please feel free to submit a pull request with the updated localizations!";
164+
"whats_new_6" = "Special thanks to @JenJell on GitHub for implementing external resource support, weather support, and much more!";
165165

166166
// - Onboarding
167167
"welcome_to_InfiniLink" = "Welcome to InfiniLink!";

InfiniLink/ko.lproj/Localizable.strings

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,10 @@
158158
"welcome_to_version" = "Welcome to version";
159159
"whats_new_1" = "The UI has been completely refreshed!";
160160
"whats_new_2" = "Apple HealthKit is now supported to sync step count and heart rate data with Apple Health.";
161-
"whats_new_3" = "InfiniLink users can now upload and delete files on their watch's Bluetooth filesystem, as well as upload external resource packages. Users can also convert images to the supported image format within the app.";
162-
"whats_new_4" = "Weather support has also been added in this release, using the National Weather Service API (for users in the United States) and the WeatherAPI API for users outside of the United States. The weather data is pushed using InfiniTime 1.14's new Simple Weather Service. Please make sure your InfiniTime device is updated to InfiniTime 1.14 to use the implementation.";
163-
"whats_new_5" = "This release also contains some new localizations. Please note that not all localizations have been updated for the new UI. If you're able to assist with localizations, please get in touch with us on the GitHub repo, or feel free to submit a pull request with localizations. Any help in this capacity is much appreciated!";
164-
"whats_new_6" = "Huge thanks to @JenJell on GitHub for implementing external resource support, weather support, and much more!";
161+
"whats_new_3" = "InfiniLink users can now upload and delete files on their watch's Bluetooth filesystem, as well as upload external resource packages. Users can also convert images to the format supported by InfiniTime, within the app.";
162+
"whats_new_4" = "Weather support has also been added in this release, using the National Weather Service API (for users in the United States) and the WeatherAPI API for users outside of the United States. The weather data is pushed using InfiniTime's new Simple Weather Service. Requires InfiniTime 1.14 or newer.";
163+
"whats_new_5" = "This release also contains some new localizations. Please note that not all the localizations are complete. If you're able to assist with them, please feel free to submit a pull request with the updated localizations!";
164+
"whats_new_6" = "Special thanks to @JenJell on GitHub for implementing external resource support, weather support, and much more!";
165165

166166
// - Onboarding
167167
"welcome_to_InfiniLink" = "Welcome to InfiniLink!";

InfiniLink/ru.lproj/Localizable.strings

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,10 @@
158158
"welcome_to_version" = "Welcome to version";
159159
"whats_new_1" = "The UI has been completely refreshed!";
160160
"whats_new_2" = "Apple HealthKit is now supported to sync step count and heart rate data with Apple Health.";
161-
"whats_new_3" = "InfiniLink users can now upload and delete files on their watch's Bluetooth filesystem, as well as upload external resource packages. Users can also convert images to the supported image format within the app.";
162-
"whats_new_4" = "Weather support has also been added in this release, using the National Weather Service API (for users in the United States) and the WeatherAPI API for users outside of the United States. The weather data is pushed using InfiniTime 1.14's new Simple Weather Service. Please make sure your InfiniTime device is updated to InfiniTime 1.14 to use the implementation.";
163-
"whats_new_5" = "This release also contains some new localizations. Please note that not all localizations have been updated for the new UI. If you're able to assist with localizations, please get in touch with us on the GitHub repo, or feel free to submit a pull request with localizations. Any help in this capacity is much appreciated!";
164-
"whats_new_6" = "Huge thanks to @JenJell on GitHub for implementing external resource support, weather support, and much more!";
161+
"whats_new_3" = "InfiniLink users can now upload and delete files on their watch's Bluetooth filesystem, as well as upload external resource packages. Users can also convert images to the format supported by InfiniTime, within the app.";
162+
"whats_new_4" = "Weather support has also been added in this release, using the National Weather Service API (for users in the United States) and the WeatherAPI API for users outside of the United States. The weather data is pushed using InfiniTime's new Simple Weather Service. Requires InfiniTime 1.14 or newer.";
163+
"whats_new_5" = "This release also contains some new localizations. Please note that not all the localizations are complete. If you're able to assist with them, please feel free to submit a pull request with the updated localizations!";
164+
"whats_new_6" = "Special thanks to @JenJell on GitHub for implementing external resource support, weather support, and much more!";
165165

166166
// - Onboarding
167167
"welcome_to_InfiniLink" = "Welcome to InfiniLink!";

InfiniLink/zh-Hant.lproj/Localizable.strings

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,10 @@
157157
"welcome_to_version" = "Welcome to version";
158158
"whats_new_1" = "The UI has been completely refreshed!";
159159
"whats_new_2" = "Apple HealthKit is now supported to sync step count and heart rate data with Apple Health.";
160-
"whats_new_3" = "InfiniLink users can now upload and delete files on their watch's Bluetooth filesystem, as well as upload external resource packages. Users can also convert images to the supported image format within the app.";
161-
"whats_new_4" = "Weather support has also been added in this release, using the National Weather Service API (for users in the United States) and the WeatherAPI API for users outside of the United States. The weather data is pushed using InfiniTime 1.14's new Simple Weather Service. Please make sure your InfiniTime device is updated to InfiniTime 1.14 to use the implementation.";
162-
"whats_new_5" = "This release also contains some new localizations. Please note that not all localizations have been updated for the new UI. If you're able to assist with localizations, please get in touch with us on the GitHub repo, or feel free to submit a pull request with localizations. Any help in this capacity is much appreciated!";
163-
"whats_new_6" = "Huge thanks to @JenJell on GitHub for implementing external resource support, weather support, and much more!";
160+
"whats_new_3" = "InfiniLink users can now upload and delete files on their watch's Bluetooth filesystem, as well as upload external resource packages. Users can also convert images to the format supported by InfiniTime, within the app.";
161+
"whats_new_4" = "Weather support has also been added in this release, using the National Weather Service API (for users in the United States) and the WeatherAPI API for users outside of the United States. The weather data is pushed using InfiniTime's new Simple Weather Service. Requires InfiniTime 1.14 or newer.";
162+
"whats_new_5" = "This release also contains some new localizations. Please note that not all the localizations are complete. If you're able to assist with them, please feel free to submit a pull request with the updated localizations!";
163+
"whats_new_6" = "Special thanks to @JenJell on GitHub for implementing external resource support, weather support, and much more!";
164164

165165
// - Onboarding
166166
"welcome_to_InfiniLink" = "Welcome to InfiniLink!";

0 commit comments

Comments
 (0)