Skip to content

Commit

Permalink
fix: iOS 17 Rank Sort View not show
Browse files Browse the repository at this point in the history
  • Loading branch information
iHTCboy committed Sep 16, 2023
1 parent 56a997b commit 036e8e6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
8 changes: 4 additions & 4 deletions iAppStore.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "-";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 2023.06.24;
CURRENT_PROJECT_VERSION = 2023.09.16;
DEVELOPMENT_ASSET_PATHS = "\"iAppStore/Preview Content\"";
DEVELOPMENT_TEAM = "";
ENABLE_PREVIEWS = YES;
Expand All @@ -688,7 +688,7 @@
"@executable_path/Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 11.0;
MARKETING_VERSION = 1.6.0;
MARKETING_VERSION = 1.6.1;
PRODUCT_BUNDLE_IDENTIFIER = com.37iOS.iApp;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand All @@ -709,7 +709,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "-";
CODE_SIGN_STYLE = Manual;
CURRENT_PROJECT_VERSION = 2023.06.24;
CURRENT_PROJECT_VERSION = 2023.09.16;
DEVELOPMENT_ASSET_PATHS = "\"iAppStore/Preview Content\"";
DEVELOPMENT_TEAM = "";
ENABLE_PREVIEWS = YES;
Expand All @@ -728,7 +728,7 @@
"@executable_path/Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 11.0;
MARKETING_VERSION = 1.6.0;
MARKETING_VERSION = 1.6.1;
PRODUCT_BUNDLE_IDENTIFIER = com.37iOS.iApp;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down
12 changes: 10 additions & 2 deletions iAppStore/components/rankLists/RankSortView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ struct RankSortView: View {
@State private var sortViewIsExpanded: Bool = false
@State private var currentSortType: RankSortType = .noneType

@State private var isViewAppear: Bool = false

var action: ((_ rankName: String, _ categoryName: String, _ regionName: String) -> Void)?

var body: some View {
Expand All @@ -36,11 +38,15 @@ struct RankSortView: View {
},
label: {
sortLabels
.accentColor(Color.tsmg_label)
}
)
.buttonStyle(PlainButtonStyle())
.accentColor(.clear)
}
.onAppear() {
isViewAppear = true
}
.onDisappear() {
sortViewIsExpanded = false
currentSortType = .noneType
Expand Down Expand Up @@ -214,10 +220,12 @@ extension RankSortView {
Text(regionName)
}

if currentSortType == type {
if isViewAppear {
Image(systemName: "chevron.up")
.scaleEffect(x: 1, y: currentSortType == type ? 1 : -1)
.animation(.easeIn)
} else {
Image(systemName: "chevron.down")
Image(systemName: "chevron.up")
}
}
.onTapGesture {
Expand Down

0 comments on commit 036e8e6

Please sign in to comment.