Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update version 1.1.0 #58

Merged
merged 5 commits into from
Nov 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 16 additions & 10 deletions FiveGuyes/FiveGuyes.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
1A27D9662CDB779000D1E14D /* TotalCalendarView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1A27D9652CDB779000D1E14D /* TotalCalendarView.swift */; };
1A54142B2CD9FEF400283FBD /* BookSearchView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1A54142A2CD9FEF400283FBD /* BookSearchView.swift */; };
1AA14A782CDDA30D00B763A6 /* TotalCalendarTextBubble.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1AA14A772CDDA30D00B763A6 /* TotalCalendarTextBubble.swift */; };
1AA14A7A2CDDD96200B763A6 /* NotificationManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1AA14A792CDDD96200B763A6 /* NotificationManager.swift */; };
24360D482CD8BAF100E83D2B /* EmptyNotiView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 24360D472CD8BAF100E83D2B /* EmptyNotiView.swift */; };
24360D4A2CD8BE3C00E83D2B /* FinishGoalView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 24360D492CD8BE3C00E83D2B /* FinishGoalView.swift */; };
24360D532CD9F3AF00E83D2B /* DailyProgressView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 24360D522CD9F3AF00E83D2B /* DailyProgressView.swift */; };
Expand All @@ -39,6 +40,7 @@
26EBDE262CDE3C6000B3A2BC /* BookSettingInputModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 26EBDE252CDE3C6000B3A2BC /* BookSettingInputModel.swift */; };
26EBDE2A2CDF33D900B3A2BC /* Date+Extension.swift in Sources */ = {isa = PBXBuildFile; fileRef = 26EBDE292CDF33D900B3A2BC /* Date+Extension.swift */; };
26EBDE2C2CE1341800B3A2BC /* UserBook.swift in Sources */ = {isa = PBXBuildFile; fileRef = 26EBDE2B2CE1341800B3A2BC /* UserBook.swift */; };
26EBDE2F2CE3856900B3A2BC /* NotificationType.swift in Sources */ = {isa = PBXBuildFile; fileRef = 26EBDE2E2CE3856900B3A2BC /* NotificationType.swift */; };
26F19A682CD9EFD800F41D6D /* MainHomeView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 26F19A672CD9EFD800F41D6D /* MainHomeView.swift */; };
26F19A6A2CD9FE5C00F41D6D /* WeeklyReadingProgressView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 26F19A692CD9FE5C00F41D6D /* WeeklyReadingProgressView.swift */; };
26F19A6C2CDA0A2B00F41D6D /* CompletionListView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 26F19A6B2CDA0A2B00F41D6D /* CompletionListView.swift */; };
Expand All @@ -47,7 +49,6 @@
26F19A742CDB271E00F41D6D /* NavigationRootView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 26F19A732CDB271E00F41D6D /* NavigationRootView.swift */; };
26F19A782CDB5D0100F41D6D /* BookDetails.swift in Sources */ = {isa = PBXBuildFile; fileRef = 26F19A772CDB5D0100F41D6D /* BookDetails.swift */; };
26F19A7A2CDB5F3900F41D6D /* ReadingScheduleCalculator.swift in Sources */ = {isa = PBXBuildFile; fileRef = 26F19A792CDB5F3900F41D6D /* ReadingScheduleCalculator.swift */; };
26F19A822CDBE3A600F41D6D /* ReadingTestView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 26F19A812CDBE3A600F41D6D /* ReadingTestView.swift */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
Expand All @@ -63,6 +64,8 @@
1A27D9652CDB779000D1E14D /* TotalCalendarView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TotalCalendarView.swift; sourceTree = "<group>"; };
1A54142A2CD9FEF400283FBD /* BookSearchView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = BookSearchView.swift; path = FiveGuyes/Sources/Views/Screen/BookSetting/BookSearch/BookSearchView.swift; sourceTree = SOURCE_ROOT; };
1AA14A772CDDA30D00B763A6 /* TotalCalendarTextBubble.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TotalCalendarTextBubble.swift; sourceTree = "<group>"; };
1AA14A792CDDD96200B763A6 /* NotificationManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NotificationManager.swift; sourceTree = "<group>"; };
24360D452CD8A2F800E83D2B /* EmptyDataMainView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmptyDataMainView.swift; sourceTree = "<group>"; };
24360D472CD8BAF100E83D2B /* EmptyNotiView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmptyNotiView.swift; sourceTree = "<group>"; };
24360D492CD8BE3C00E83D2B /* FinishGoalView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FinishGoalView.swift; sourceTree = "<group>"; };
24360D522CD9F3AF00E83D2B /* DailyProgressView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DailyProgressView.swift; sourceTree = "<group>"; };
Expand All @@ -85,6 +88,7 @@
26EBDE252CDE3C6000B3A2BC /* BookSettingInputModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BookSettingInputModel.swift; sourceTree = "<group>"; };
26EBDE292CDF33D900B3A2BC /* Date+Extension.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Date+Extension.swift"; sourceTree = "<group>"; };
26EBDE2B2CE1341800B3A2BC /* UserBook.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UserBook.swift; sourceTree = "<group>"; };
26EBDE2E2CE3856900B3A2BC /* NotificationType.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NotificationType.swift; sourceTree = "<group>"; };
26F19A672CD9EFD800F41D6D /* MainHomeView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainHomeView.swift; sourceTree = "<group>"; };
26F19A692CD9FE5C00F41D6D /* WeeklyReadingProgressView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WeeklyReadingProgressView.swift; sourceTree = "<group>"; };
26F19A6B2CDA0A2B00F41D6D /* CompletionListView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CompletionListView.swift; sourceTree = "<group>"; };
Expand All @@ -93,7 +97,6 @@
26F19A732CDB271E00F41D6D /* NavigationRootView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NavigationRootView.swift; sourceTree = "<group>"; };
26F19A772CDB5D0100F41D6D /* BookDetails.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BookDetails.swift; sourceTree = "<group>"; };
26F19A792CDB5F3900F41D6D /* ReadingScheduleCalculator.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ReadingScheduleCalculator.swift; sourceTree = "<group>"; };
26F19A812CDBE3A600F41D6D /* ReadingTestView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ReadingTestView.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand Down Expand Up @@ -142,6 +145,7 @@
261714D32CDD27C900A3241D /* Config.xcconfig */,
26890B932CAE811A008DFF49 /* FiveGuyes */,
26890B922CAE811A008DFF49 /* Products */,
26EBDE2D2CE3307C00B3A2BC /* Recovered References */,
);
sourceTree = "<group>";
};
Expand Down Expand Up @@ -218,7 +222,6 @@
26D852FB2CCE40BC0016239A /* Screen */ = {
isa = PBXGroup;
children = (
26F19A832CDC970D00F41D6D /* Testing */,
26F19A662CD9EF9400F41D6D /* Main */,
1A27D95E2CDA155B00D1E14D /* BookSetting */,
24360D4F2CD9F2D800E83D2B /* BookProgress */,
Expand Down Expand Up @@ -264,6 +267,8 @@
26F19A772CDB5D0100F41D6D /* BookDetails.swift */,
26EBDE2B2CE1341800B3A2BC /* UserBook.swift */,
26F19A792CDB5F3900F41D6D /* ReadingScheduleCalculator.swift */,
26EBDE2E2CE3856900B3A2BC /* NotificationType.swift */,
1AA14A792CDDD96200B763A6 /* NotificationManager.swift */,
);
path = Models;
sourceTree = "<group>";
Expand Down Expand Up @@ -300,20 +305,20 @@
path = BookSearch;
sourceTree = "<group>";
};
26F19A662CD9EF9400F41D6D /* Main */ = {
26EBDE2D2CE3307C00B3A2BC /* Recovered References */ = {
isa = PBXGroup;
children = (
26F19A672CD9EFD800F41D6D /* MainHomeView.swift */,
24360D452CD8A2F800E83D2B /* EmptyDataMainView.swift */,
);
path = Main;
name = "Recovered References";
sourceTree = "<group>";
};
26F19A832CDC970D00F41D6D /* Testing */ = {
26F19A662CD9EF9400F41D6D /* Main */ = {
isa = PBXGroup;
children = (
26F19A812CDBE3A600F41D6D /* ReadingTestView.swift */,
26F19A672CD9EFD800F41D6D /* MainHomeView.swift */,
);
path = Testing;
path = Main;
sourceTree = "<group>";
};
/* End PBXGroup section */
Expand Down Expand Up @@ -394,7 +399,6 @@
files = (
1A54142B2CD9FEF400283FBD /* BookSearchView.swift in Sources */,
26F19A782CDB5D0100F41D6D /* BookDetails.swift in Sources */,
26F19A822CDBE3A600F41D6D /* ReadingTestView.swift in Sources */,
1A010EAE2CD8A86E00FBE3B3 /* APIStore.swift in Sources */,
24A2063F2CDB180000964FBB /* CompletionCalendarView.swift in Sources */,
1A010EBE2CD8DA2400FBE3B3 /* BookListView.swift in Sources */,
Expand All @@ -416,6 +420,7 @@
24360D4A2CD8BE3C00E83D2B /* FinishGoalView.swift in Sources */,
26F19A682CD9EFD800F41D6D /* MainHomeView.swift in Sources */,
26F19A742CDB271E00F41D6D /* NavigationRootView.swift in Sources */,
1AA14A7A2CDDD96200B763A6 /* NotificationManager.swift in Sources */,
264440502CD8A3AC0031A290 /* CompletionReviewView.swift in Sources */,
264440502CD8A3AC0031A290 /* CompletionReviewView.swift in Sources */,
26890B952CAE811A008DFF49 /* FiveGuyesApp.swift in Sources */,
Expand All @@ -425,6 +430,7 @@
264440572CD8E0D20031A290 /* CustomTextEditorStyle.swift in Sources */,
264440552CD8E0100031A290 /* KeyboardObserver.swift in Sources */,
26F19A6C2CDA0A2B00F41D6D /* CompletionListView.swift in Sources */,
26EBDE2F2CE3856900B3A2BC /* NotificationType.swift in Sources */,
1A27D9662CDB779000D1E14D /* TotalCalendarView.swift in Sources */,
2644404E2CD8A39E0031A290 /* CompletionCelebrationView.swift in Sources */,
26EBDE262CDE3C6000B3A2BC /* BookSettingInputModel.swift in Sources */,
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.

This file was deleted.

88 changes: 88 additions & 0 deletions FiveGuyes/FiveGuyes/Sources/Models/NotificationManager.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
//
// NotificationManager.swift
// FiveGuyes
//
// Created by Shim Hyeonhee on 11/8/24.
//

import UserNotifications

final class NotificationManager {
private let notificationCenter = UNUserNotificationCenter.current()
private var isGranted: Bool = false

func setupNotifications(notificationType: NotificationType) async {
await requestAuthorization()

if isGranted {
await scheduleReminderNotification(notificationType: notificationType)
}
}

/// μš”μ²­ν•œ Noticifation을 λͺ¨λ‘ μ§€μš°λŠ” ν•¨μˆ˜
func clearRequests() {
notificationCenter.removeAllPendingNotificationRequests()
}

/// Notification κΆŒν•œ μš”μ²­ ν•¨μˆ˜
private func requestAuthorization() async {
do {
try await notificationCenter
.requestAuthorization(options: [.sound, .badge, .alert])
} catch {
print("❌ NotificationManager/requestAuthorization: \(error.localizedDescription)")
}

await getCurrentSettings()
}

/// ν˜„μž¬ Notification κΆŒν•œ 섀정을 κ°€μ Έμ˜€λŠ” ν•¨μˆ˜
private func getCurrentSettings() async {
let currentSettings = await notificationCenter.notificationSettings()

isGranted = (currentSettings.authorizationStatus == .authorized)
}

private func scheduleReminderNotification(notificationType: NotificationType) async {
// dateContentκ°€ nil일 경우 μ•Œλ¦Όμ„ 보내지 μ•ŠμŒ
guard let date = notificationType.dateContent() else {
print("❌ NotificationManager: λ‹€μŒ 읽기 λ‚ μ§œκ°€ μ—†μ–΄ μ•Œλ¦Όμ„ μƒμ„±ν•˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€.")
return
}

let dateComponents = makeDateComponents(date: date, notificationType)
let content = makeNotificationContent(notificationType)

let identifier = notificationType.identifier()

// μ„€μ •λŒ€λ‘œ 트리거, μš”μ²­ μ…‹νŒ…
let trigger = UNCalendarNotificationTrigger(dateMatching: dateComponents, repeats: false)
let request = UNNotificationRequest(identifier: identifier, content: content, trigger: trigger)

do {
try await notificationCenter.add(request)
print("πŸ’― λ…Έν‹° μ„€μ • μ™„λ£Œ")
} catch {
print("❌ NotificationManager/schedule: \(error.localizedDescription)")
}
}

private func makeDateComponents(date: Date, _ notificationType: NotificationType) -> DateComponents {
let calendar = Calendar.current
let day = calendar.component(.day, from: date)
let month = calendar.component(.month, from: date)
let year = calendar.component(.year, from: date)
let (hour, minute) = notificationType.timeContent()
print("πŸ’―λ…Έν‹° μ„€μ •: \(date) \(hour): \(minute)")
return DateComponents(year: year, month: month, day: day, hour: hour, minute: minute)
}

private func makeNotificationContent(_ notificationType: NotificationType) -> UNMutableNotificationContent {
let content = UNMutableNotificationContent()
let (title, body) = notificationType.descriptionContent()
content.title = title
content.body = body

return content
}
}
53 changes: 53 additions & 0 deletions FiveGuyes/FiveGuyes/Sources/Models/NotificationType.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
//
// NotificationType.swift
// FiveGuyes
//
// Created by zaehorang on 11/12/24.
//

import Foundation

enum NotificationType {
case morning(readingBook: UserBook)
case night(readingBook: UserBook)

func descriptionContent() -> (title: String, body: String) {
switch self {
case .morning(let readingBook):
let title = "였늘의 ν•œμž…, μ€€λΉ„λλ‚˜μš”?"
let body = "μ˜€λŠ˜μ€ \(readingBook.findNextReadingPagesPerDay())νŽ˜μ΄μ§€λ§Œ 읽으면 λΌμš” 멍멍!"
return (title, body)

case .night:
let title = "였늘의 ν•œμž…λ…μ„œλ₯Ό λ†“μΉ˜κ³  κ³„μ‹ κ°€μš”?"
let body = "였늘 μ™„λ…ν•˜μ§€ μ•Šμ•˜μ–΄μš”!\n완독이가 λ¬Όμ–΄λ²„λ¦΄κ±°μ—μš” πŸ₯Ž μ™•μ™•"
return (title, body)
}
}

func dateContent() -> Date? {
switch self {
case .morning(let readingBook), .night(let readingBook):
return readingBook.findNextReadingDay()
}
}

func timeContent() -> (hour: Int, minute: Int) {
switch self {
case .morning:
return (11, 0)
case .night:
return (23, 0)
}
}

/// 고유 identifier 생성 λ©”μ„œλ“œ
func identifier() -> String {
switch self {
case .morning(let readingBook):
return "\(readingBook.book.title)-morning"
case .night(let readingBook):
return "\(readingBook.book.title)-night"
}
}
}
47 changes: 24 additions & 23 deletions FiveGuyes/FiveGuyes/Sources/Models/ReadingScheduleCalculator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,7 @@ struct ReadingScheduleCalculator {

// MARK: 첫날을 κΈ°μ€€μœΌλ‘œ μ½μ–΄μ•Όν•˜λŠ” νŽ˜μ΄μ§€λ₯Ό ν• λ‹Ήν•˜λŠ” λ©”μ„œλ“œ (초기 νŽ˜μ΄μ§€ 계산)
func calculateInitialDailyTargets(for currentReadingBook: UserBook) {
let pagesPerDay = firstCalculatePagesPerDay(for: currentReadingBook)
let remainderPages = firstCalculateRemainderPages(for: currentReadingBook)
let (pagesPerDay, remainderPages) = firstCalculatePagesPerDay(for: currentReadingBook)

var targetDate = currentReadingBook.book.startDate
var remainderOffset = remainderPages
Expand Down Expand Up @@ -78,7 +77,7 @@ struct ReadingScheduleCalculator {
}
}

//MARK: 더 μ½κ±°λ‚˜, 덜 읽으면 이후 λ‚ μ§œμ˜ ν• λ‹ΉλŸ‰μ„ λ‹€μ‹œ κ³„μ‚°ν•œλ‹€.
// MARK: 더 μ½κ±°λ‚˜, 덜 읽으면 이후 λ‚ μ§œμ˜ ν• λ‹ΉλŸ‰μ„ λ‹€μ‹œ κ³„μ‚°ν•œλ‹€.
func adjustFutureTargets(for currentReadingBook: UserBook, from date: Date) {
let totalRemainingPages = calculateRemainingPages(for: currentReadingBook)
print("❌: \(totalRemainingPages)")
Expand Down Expand Up @@ -126,16 +125,10 @@ struct ReadingScheduleCalculator {
func reassignPagesFromLastReadDate(for currentReadingBook: UserBook) {
// 이미 μ½μ—ˆμœΌλ©΄ μž¬λΆ„λ°° x
if hasReadPagesToday(for: currentReadingBook) { return }

// λͺ‡ νŽ˜μ΄μ§€ λ‚¨μŒ?
let totalRemainingPages = calculateRemainingPages(for: currentReadingBook)
print("❌re: \(totalRemainingPages)")
// μ˜€λŠ˜λΆ€ν„° λ©°μΉ  λ‚¨μŒ?
let remainingDays = calculateRemainingReadingDays(for: currentReadingBook)
print("🐢re: \(remainingDays)")
// 남은 νŽ˜μ΄μ§€μ™€ λ‚ μ§œλ₯Ό κΈ°μ€€μœΌλ‘œ μƒˆλ‘­κ²Œ ν• λ‹ΉλŸ‰ 계산
let pagesPerDay = totalRemainingPages / remainingDays
var remainderOffset = totalRemainingPages % remainingDays

// 남은 νŽ˜μ΄μ§€μ™€ 일수λ₯Ό κΈ°μ€€μœΌλ‘œ μƒˆλ‘­κ²Œ ν• λ‹ΉλŸ‰ 계산
let (pagesPerDay, remainderPages) = calculatePagesPerDay(for: currentReadingBook)
var remainderOffset = remainderPages
var cumulativePages = currentReadingBook.lastPagesRead

var targetDate = Date() // 였늘 λ‚ μ§œλΆ€ν„° μƒˆλ‘œ ν• λ‹Ή μ‹œμž‘
Expand Down Expand Up @@ -187,16 +180,12 @@ struct ReadingScheduleCalculator {
}

// ν•˜λ£¨μ— λͺ‡ νŽ˜μ΄μ§€ μ½λŠ”μ§€ 계산
func firstCalculatePagesPerDay(for currentReadingBook: UserBook) -> Int {
let totalReadingDays = firstCalculateTotalReadingDays(for: currentReadingBook)
return currentReadingBook.book.totalPages / totalReadingDays
}


// ν•˜λ£¨μ— λͺ‡ νŽ˜μ΄μ§€ μ½λŠ”μ§€ κ³„μ‚°ν•˜κ³  λ”± 떨어지지 μ•ŠλŠ” νŽ˜μ΄μ§€ 수 κ΅¬ν•˜λŠ” λ©”μ„œλ“œ
func firstCalculateRemainderPages(for currentReadingBook: UserBook) -> Int {
func firstCalculatePagesPerDay(for currentReadingBook: UserBook) -> (pagesPerDay: Int, remainder: Int) {
let totalReadingDays = firstCalculateTotalReadingDays(for: currentReadingBook)
return currentReadingBook.book.totalPages % totalReadingDays
let pagesPerDay = currentReadingBook.book.totalPages / totalReadingDays
let remainder = currentReadingBook.book.totalPages % totalReadingDays

return (pagesPerDay, remainder)
}

// MARK: - 남은 양을 λ‹€μ‹œ 계산할 λ•Œ μ‚¬μš©ν•˜λŠ” λ©”μ„œλ“œ
Expand All @@ -220,6 +209,19 @@ struct ReadingScheduleCalculator {
return remainingDays
}

// 남은 νŽ˜μ΄μ§€μ™€ λ‚ μ§œλ₯Ό 기반으둜 일일 ν• λ‹ΉλŸ‰μ„ κ³„μ‚°ν•˜λŠ” λ©”μ„œλ“œ
func calculatePagesPerDay(for currentReadingBook: UserBook) -> (pagesPerDay: Int, remainder: Int) {
let totalRemainingPages = calculateRemainingPages(for: currentReadingBook)
let remainingDays = calculateRemainingReadingDays(for: currentReadingBook)

let pagesPerDay = totalRemainingPages / remainingDays
let remainder = totalRemainingPages % remainingDays

print("βŒμ½λŠ” 쀑: \(totalRemainingPages)")
print("πŸΆμ½λŠ” 쀑: \(remainingDays)")

return (pagesPerDay, remainder)
}

// νŠΉμ • λ‚ μ˜ λ¬™ν‘œλŸ‰κ³Ό μ‹€μ œ 읽은 νŽ˜μ΄μ§€μ˜ 수λ₯Ό κ°€μ Έμ˜€λŠ” λ©”μ„œλ“œ
func getReadingRecord(for currentReadingBook: UserBook, for date: Date) -> ReadingRecord? {
Expand All @@ -228,4 +230,3 @@ struct ReadingScheduleCalculator {
return currentReadingBook.readingRecords[dateKey]
}
}

Loading