Skip to content

Commit 808e9e8

Browse files
authored
Merge pull request #792 from DroidKaigi/ios-1.1
[iOS] Bump up version to 1.1 and fix loading
2 parents 2205920 + 6a38915 commit 808e9e8

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

app-ios/DroidKaigi2022/DroidKaigi2022.xcodeproj/project.pbxproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@
335335
"$(inherited)",
336336
"@executable_path/Frameworks",
337337
);
338-
MARKETING_VERSION = 1.0;
338+
MARKETING_VERSION = 1.1;
339339
PRODUCT_BUNDLE_IDENTIFIER = io.github.droidkaigi.DroidKaigi2022;
340340
PRODUCT_NAME = DroidKaigi2022;
341341
SDKROOT = iphoneos;
@@ -368,7 +368,7 @@
368368
"$(inherited)",
369369
"@executable_path/Frameworks",
370370
);
371-
MARKETING_VERSION = 1.0;
371+
MARKETING_VERSION = 1.1;
372372
PRODUCT_BUNDLE_IDENTIFIER = io.github.droidkaigi.DroidKaigi2022;
373373
PRODUCT_NAME = DroidKaigi2022;
374374
SDKROOT = iphoneos;

app-ios/Sources/TimetableFeature/TimetableView.swift

+4-2
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public let timetableReducer = Reducer<TimetableState, TimetableAction, Timetable
7474
return .none
7575
case let .selectDay(day):
7676
state.selectedDay = day
77-
return .init(value: .refresh)
77+
return .none
7878
case let .setFavorite(id, currentIsFavorite):
7979
return .run { @MainActor _ in
8080
try await environment.sessionsRepository.setFavorite(sessionId: id, favorite: !currentIsFavorite)
@@ -161,7 +161,9 @@ public struct TimetableView: View {
161161
.animation(.linear(duration: 0.2), value: viewStore.showDate)
162162
}.animation(Animation.easeInOut(duration: 0.3), value: viewStore.state.showSheet)
163163
.task {
164-
await viewStore.send(.refresh).finish()
164+
if viewStore.dayToTimetable.isEmpty {
165+
await viewStore.send(.refresh).finish()
166+
}
165167
}
166168
.foregroundColor(AssetColors.onBackground.swiftUIColor)
167169
.background(AssetColors.background.swiftUIColor)

0 commit comments

Comments
 (0)