Skip to content

Commit

Permalink
Apply changes to pro
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinhenderson committed Jul 8, 2024
1 parent 27ddc28 commit 973b292
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"pins" : [
{
"identity" : "exceptioncatcher",
"kind" : "remoteSourceControl",
"location" : "https://github.com/sindresorhus/ExceptionCatcher",
"state" : {
"branch" : "main",
"revision" : "81cf83b117ec368e2ebb7fbcd9f7a3deb115ab07"
}
},
{
"identity" : "youtubeplayerkit",
"kind" : "remoteSourceControl",
"location" : "https://github.com/SvenTiigi/YouTubePlayerKit",
"state" : {
"revision" : "94b5739d32f0108f1820091e6955d544a0363fad",
"version" : "1.5.4"
}
}
],
"version" : 2
}
8 changes: 0 additions & 8 deletions TextAloudPro/View/Settings/SettingViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -156,13 +156,5 @@ extension SettingViewModel{

return temp
}

func incrementStep() {
fontSize += 1
}

func decrementStep() {
fontSize -= 1
}
}

6 changes: 1 addition & 5 deletions TextAloudPro/View/Settings/SettingsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -333,16 +333,12 @@ extension SettingsView{

Divider().padding(.vertical, 4)

Stepper {
Stepper(value: $settingVM.fontSize, in: 12 ... 40) {
HStack {
Text(Localization.fontSize.toString)
Spacer()
Text("\(settingVM.fontSize)")
}
} onIncrement: {
settingVM.incrementStep()
} onDecrement: {
settingVM.decrementStep()
}
}
.font(.headline.weight(.medium))
Expand Down

0 comments on commit 973b292

Please sign in to comment.