@@ -39,8 +39,8 @@ struct DetailView: View, StoreAccessor, PersistenceAccessor {
3939 VStack ( spacing: 30 ) {
4040 HeaderView (
4141 manga: manga, detail: detail,
42- translateCategory : setting
43- . translateCategory ,
42+ translatesCategory : setting
43+ . translatesCategory ,
4444 favoriteNames: user. favoriteNames,
4545 addFavAction: addFavorite,
4646 deleteFavAction: deleteFavorite
@@ -229,22 +229,22 @@ private extension DetailView {
229229private struct HeaderView : View {
230230 private let manga : Manga
231231 private let detail : MangaDetail
232- private let translateCategory : Bool
232+ private let translatesCategory : Bool
233233 private let favoriteNames : [ Int : String ] ?
234234 private let addFavAction : ( Int ) -> Void
235235 private let deleteFavAction : ( ) -> Void
236236
237237 init (
238238 manga: Manga ,
239239 detail: MangaDetail ,
240- translateCategory : Bool ,
240+ translatesCategory : Bool ,
241241 favoriteNames: [ Int : String ] ? ,
242242 addFavAction: @escaping ( Int ) -> Void ,
243243 deleteFavAction: @escaping ( ) -> Void
244244 ) {
245245 self . manga = manga
246246 self . detail = detail
247- self . translateCategory = translateCategory
247+ self . translatesCategory = translatesCategory
248248 self . favoriteNames = favoriteNames
249249 self . addFavAction = addFavAction
250250 self . deleteFavAction = deleteFavAction
@@ -339,7 +339,7 @@ private extension HeaderView {
339339 }
340340 }
341341 var category : String {
342- if translateCategory {
342+ if translatesCategory {
343343 return manga. category. rawValue. localized ( )
344344 } else {
345345 return manga. category. rawValue
0 commit comments