Skip to content

Commit 41ac582

Browse files
authored
Feature/update support links (#132)
* Обновил ссылки для поддержки в настройках + добавил ссылку на бусти street workout * Добавил локализацию для новой ссылки
1 parent 510ba53 commit 41ac582

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-2
lines changed

SwiftUI-WorkoutApp/Resources/Localizable.xcstrings

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -672,6 +672,17 @@
672672
}
673673
}
674674
},
675+
"Street Workout на boosty" : {
676+
"extractionState" : "manual",
677+
"localizations" : {
678+
"en" : {
679+
"stringUnit" : {
680+
"state" : "translated",
681+
"value" : "Street Workout (boosty)"
682+
}
683+
}
684+
}
685+
},
675686
"usersCount" : {
676687
"localizations" : {
677688
"en" : {

SwiftUI-WorkoutApp/Screens/Profile/Settings/ProfileSettingsView.swift

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@ struct ProfileSettingsView: View {
4242
}
4343
dividerView
4444
SectionView(header: "Поддержать проект", mode: .regular) {
45-
workoutShopButton
45+
VStack(spacing: 4) {
46+
workoutShopButton
47+
workoutProfileButton
48+
}
4649
}
4750
dividerView
4851
SectionView(header: "Поддержать разработчика", mode: .regular) {
@@ -88,7 +91,8 @@ private extension ProfileSettingsView.Mode {
8891
private extension ProfileSettingsView {
8992
enum Links {
9093
static let appReview = URL(string: "https://apps.apple.com/app/id1035159361?action=write-review")!
91-
static let workoutShop = URL(string: "https://workoutshop.ru")!
94+
static let workoutShop = URL(string: "https://workoutshop.ru//SWiOS")!
95+
static let workoutProfile = URL(string: "https://boosty.to/swrussia")!
9296
static let developerProfile = URL(string: "https://boosty.to/oleg991")!
9397
static let officialSite = URL(string: "https://workout.su")!
9498
static let rulesOfService = URL(string: "https://workout.su/pravila")!
@@ -241,6 +245,15 @@ private extension ProfileSettingsView {
241245
}
242246
}
243247

248+
var workoutProfileButton: some View {
249+
Link(destination: Links.workoutProfile) {
250+
ListRowView(
251+
leadingContent: .text("Street Workout на boosty"),
252+
trailingContent: .chevron
253+
)
254+
}
255+
}
256+
244257
var developerProfileButton: some View {
245258
Link(destination: Links.developerProfile) {
246259
ListRowView(

0 commit comments

Comments
 (0)