Skip to content

Commit

Permalink
indicate sort order with arrow (#199)
Browse files Browse the repository at this point in the history
* indicate sort order with arrow

* pr build
  • Loading branch information
Doraemoe authored Feb 28, 2024
1 parent 5b85ef0 commit 7fac706
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 24 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,22 @@ on:

jobs:
verify:
runs-on: macOS-13
runs-on: macOS-14

strategy:
matrix:
destination: ['platform=iOS Simulator,OS=17.2,name=iPad Pro (11-inch) (4th generation)']
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: install
run: brew install swiftlint

- name: lint
run: swiftlint --strict

- name: Select Xcode version
run: sudo xcode-select -switch /Applications/Xcode_15.1.app
run: sudo xcode-select -switch /Applications/Xcode_15.2.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 = 84;
CURRENT_PROJECT_VERSION = 85;
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.1;
MARKETING_VERSION = 2.2.2;
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 = 84;
CURRENT_PROJECT_VERSION = 85;
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.1;
MARKETING_VERSION = 2.2.2;
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 = 84;
CURRENT_PROJECT_VERSION = 85;
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.1;
MARKETING_VERSION = 2.2.2;
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 = 84;
CURRENT_PROJECT_VERSION = 85;
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.1;
MARKETING_VERSION = 2.2.2;
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 @@ -23,17 +23,17 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/groue/GRDB.swift",
"state" : {
"revision" : "e069e2732e3ee2b67bf89c1bda1937da0eaee7ef",
"version" : "6.24.2"
"revision" : "bd9aea303d9dab3a4941ee838a0e4ff51c9448df",
"version" : "6.25.0"
}
},
{
"identity" : "marqueelabel",
"kind" : "remoteSourceControl",
"location" : "https://github.com/cbpowell/MarqueeLabel",
"state" : {
"revision" : "ae3cf7c647dd7f67f1946658285f5f0ce2476caf",
"version" : "4.4.0"
"revision" : "877e810534cda9afabb8143ae319b7c3341b121b",
"version" : "4.5.0"
}
},
{
Expand Down Expand Up @@ -68,8 +68,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/SnapKit/SnapKit",
"state" : {
"revision" : "e74fe2a978d1216c3602b129447c7301573cc2d8",
"version" : "5.7.0"
"revision" : "2842e6e84e82eb9a8dac0100ca90d9444b0307f4",
"version" : "5.7.1"
}
},
{
Expand Down Expand Up @@ -104,8 +104,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/swift-composable-architecture",
"state" : {
"revision" : "cf967a28a8605629559533320d604168d733fc9c",
"version" : "1.8.0"
"revision" : "856f9b8d82f6851b7f61ec4c5ce9e4c18ebbdb45",
"version" : "1.8.2"
}
},
{
Expand All @@ -122,8 +122,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/pointfreeco/swift-custom-dump",
"state" : {
"revision" : "6ea3b1b6a4957806d72030a32360d4bcb155a0d2",
"version" : "1.2.0"
"revision" : "3ce83179e5f0c83ad54c305779c6b438e82aaf1d",
"version" : "1.2.1"
}
},
{
Expand Down
7 changes: 5 additions & 2 deletions LANreader/Common/ArchiveListV2.swift
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,11 @@ struct ArchiveListV2: View {
(searchSort == searchSortCustom && sort == SearchSort.custom) {
Label(
title: { Text(LocalizedStringKey(label)) },
icon: { Image(systemName: "checkmark") }
icon: {
searchSortOrder == "asc" ?
Image(systemName: "arrow.up") :
Image(systemName: "arrow.down")
}
)
} else {
Text(LocalizedStringKey(label))
Expand All @@ -583,7 +587,6 @@ struct ArchiveListV2: View {
}
} label: {
Image(systemName: "arrow.up.arrow.down.circle")
.tint(searchSortOrder == "asc" ? .primary : .accentColor)
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ LANreader is an iOS manga reader for [LANraragi](https://github.com/Difegue/LANr

- Clone this project
- Open it in Xcode
- Follow [this guide](https://developer.apple.com/documentation/xcode/running_your_app_in_the_simulator_or_on_a_device)
- Follow [this guide](https://developer.apple.com/documentation/xcode/running-your-app-in-simulator-or-on-a-device)

## Donation

Expand Down

0 comments on commit 7fac706

Please sign in to comment.