diff --git a/iAppStore.xcodeproj/project.pbxproj b/iAppStore.xcodeproj/project.pbxproj index c4676c8..cfe91a0 100644 --- a/iAppStore.xcodeproj/project.pbxproj +++ b/iAppStore.xcodeproj/project.pbxproj @@ -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; @@ -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 = ""; @@ -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; @@ -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 = ""; diff --git a/iAppStore/components/rankLists/RankSortView.swift b/iAppStore/components/rankLists/RankSortView.swift index 52f2a23..8ed8851 100644 --- a/iAppStore/components/rankLists/RankSortView.swift +++ b/iAppStore/components/rankLists/RankSortView.swift @@ -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 { @@ -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 @@ -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 {