-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create QuranHighlightsService to manage verse highlights (#612)
- Loading branch information
1 parent
f5520e6
commit 4ac7338
Showing
22 changed files
with
236 additions
and
207 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
Domain/AnnotationsService/Sources/QuranHighlightsService.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// | ||
// QuranHighlightsService.swift | ||
// | ||
// | ||
// Created by Mohamed Afifi on 2023-12-23. | ||
// | ||
|
||
import Combine | ||
import QuranAnnotations | ||
import VLogging | ||
|
||
public final class QuranHighlightsService { | ||
// MARK: Lifecycle | ||
|
||
public init() { } | ||
|
||
// MARK: Public | ||
|
||
@Published public var highlights = QuranHighlights() { | ||
didSet { | ||
logger.info("Highlights updated") | ||
} | ||
} | ||
|
||
public func reset() { | ||
highlights = QuranHighlights() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.