Skip to content

Commit

Permalink
move hide read to sort menu (#203)
Browse files Browse the repository at this point in the history
  • Loading branch information
Doraemoe authored Apr 20, 2024
1 parent 50aa084 commit 46ca0db
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 29 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
run: swiftlint --strict

- name: Select Xcode version
run: sudo xcode-select -switch /Applications/Xcode_15.2.app
run: sudo xcode-select -switch /Applications/Xcode_15.3.app

- name: Build and test
run: xcodebuild clean test -project LANreader.xcodeproj -scheme LANreader -destination "${destination}" -skipMacroValidation
Expand Down
16 changes: 8 additions & 8 deletions LANreader.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -878,7 +878,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 86;
CURRENT_PROJECT_VERSION = 87;
DEVELOPMENT_ASSET_PATHS = "\"LANreader/Preview Content\"";
DEVELOPMENT_TEAM = UUEBW58SA6;
ENABLE_PREVIEWS = YES;
Expand All @@ -890,7 +890,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 2.2.2;
MARKETING_VERSION = 2.2.3;
PRODUCT_BUNDLE_IDENTIFIER = com.jif.LANreader;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand All @@ -907,7 +907,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 86;
CURRENT_PROJECT_VERSION = 87;
DEVELOPMENT_ASSET_PATHS = "\"LANreader/Preview Content\"";
DEVELOPMENT_TEAM = UUEBW58SA6;
ENABLE_PREVIEWS = YES;
Expand All @@ -919,7 +919,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 2.2.2;
MARKETING_VERSION = 2.2.3;
PRODUCT_BUNDLE_IDENTIFIER = com.jif.LANreader;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down Expand Up @@ -986,7 +986,7 @@
CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 86;
CURRENT_PROJECT_VERSION = 87;
DEVELOPMENT_TEAM = UUEBW58SA6;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = Action/Info.plist;
Expand All @@ -998,7 +998,7 @@
"@executable_path/Frameworks",
"@executable_path/../../Frameworks",
);
MARKETING_VERSION = 2.2.2;
MARKETING_VERSION = 2.2.3;
PRODUCT_BUNDLE_IDENTIFIER = com.jif.LANreader.Action;
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
Expand All @@ -1015,7 +1015,7 @@
CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 86;
CURRENT_PROJECT_VERSION = 87;
DEVELOPMENT_TEAM = UUEBW58SA6;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = Action/Info.plist;
Expand All @@ -1027,7 +1027,7 @@
"@executable_path/Frameworks",
"@executable_path/../../Frameworks",
);
MARKETING_VERSION = 2.2.2;
MARKETING_VERSION = 2.2.3;
PRODUCT_BUNDLE_IDENTIFIER = com.jif.LANreader.Action;
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/Alamofire/Alamofire.git",
"state" : {
"revision" : "723fa5a6c65812aec4a0d7cc432ee198883b6e00",
"version" : "5.9.0"
"revision" : "f455c2975872ccd2d9c81594c658af65716e9b9a",
"version" : "5.9.1"
}
},
{
Expand All @@ -24,8 +24,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/groue/GRDB.swift",
"state" : {
"revision" : "bd9aea303d9dab3a4941ee838a0e4ff51c9448df",
"version" : "6.25.0"
"revision" : "77b85bed259b7f107710a0b78c439b1c5839dc45",
"version" : "6.26.0"
}
},
{
Expand Down Expand Up @@ -78,8 +78,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/swift-case-paths",
"state" : {
"revision" : "e593aba2c6222daad7c4f2732a431eed2c09bb07",
"version" : "1.3.0"
"revision" : "79623dbe2c7672f5e450d8325613d231454390b3",
"version" : "1.3.2"
}
},
{
Expand All @@ -105,8 +105,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/swift-composable-architecture",
"state" : {
"revision" : "115fe5af41d333b6156d4924d7c7058bc77fd580",
"version" : "1.9.2"
"revision" : "899a68ce3c4eca42a42e6bad2c925b82dcab5187",
"version" : "1.9.3"
}
},
{
Expand Down Expand Up @@ -159,8 +159,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/swift-perception",
"state" : {
"revision" : "a5bb578d963fcdbffe4fd56c92b2e222f5b02c8a",
"version" : "1.1.2"
"revision" : "052bd30a2079d9eb2400f0bc66707cc93c015152",
"version" : "1.1.5"
}
},
{
Expand All @@ -177,17 +177,17 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/swiftui-navigation",
"state" : {
"revision" : "d9e72f3083c08375794afa216fb2f89c0114f303",
"version" : "1.2.1"
"revision" : "2ec6c3a15293efff6083966b38439a4004f25565",
"version" : "1.3.0"
}
},
{
"identity" : "xctest-dynamic-overlay",
"kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/xctest-dynamic-overlay",
"state" : {
"revision" : "b13b1d1a8e787a5ffc71ac19dcaf52183ab27ba2",
"version" : "1.1.1"
"revision" : "6f30bdba373bbd7fbfe241dddd732651f2fbd1e2",
"version" : "1.1.2"
}
}
],
Expand Down
1 change: 1 addition & 0 deletions LANreader.xcodeproj/xcshareddata/xcschemes/Action.xcscheme
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES"
askForAppToLaunch = "Yes"
launchAutomaticallySubstyle = "2">
<BuildableProductRunnable
runnableDebuggingMode = "0">
Expand Down
12 changes: 12 additions & 0 deletions LANreader/Common/ArchiveListV2.swift
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,18 @@ struct ArchiveListV2: View {
}
}
}
Divider()
Button {
hideRead.toggle()
} label: {
if hideRead {
Label("settings.view.hideRead", systemImage: "checkmark")
} else {
Text("settings.view.hideRead")
}

}

} label: {
Image(systemName: "arrow.up.arrow.down.circle")
}
Expand Down
5 changes: 0 additions & 5 deletions LANreader/ViewSettings.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ import SwiftUI

struct ViewSettings: View {
@AppStorage(SettingsKey.searchSortCustom) var searchSortCustom: String = ""
@AppStorage(SettingsKey.hideRead) var hideRead: Bool = false
@AppStorage(SettingsKey.blurInterfaceWhenInactive) var blurInterfaceWhenInactive: Bool = false
@AppStorage(SettingsKey.enablePasscode) var enablePasscode: Bool = false
@AppStorage(SettingsKey.passcode) var storedPasscode: String = ""
Expand All @@ -57,10 +56,6 @@ struct ViewSettings: View {
Text("settings.archive.list.order.custom.title")
}
.padding()
Toggle(isOn: self.$hideRead, label: {
Text("settings.view.hideRead")
})
.padding()
Toggle(isOn: self.$blurInterfaceWhenInactive, label: {
Text("settings.view.blur.inactive")
})
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ LANreader is an iOS manga reader for [LANraragi](https://github.com/Difegue/LANr

## Donation

BTC: bc1q0364ah7u88kkgh0w9l2223e5kdrffesp9t8y0r
BTC: bc1qjzpavhkj3rrd2tc2cdnvyhwms6wpvdze064r6w

## License

Expand Down

0 comments on commit 46ca0db

Please sign in to comment.