-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Tidying things again * Library Refactoring A lot has been going on
- Loading branch information
Showing
75 changed files
with
1,918 additions
and
1,164 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// | ||
// BilbaryView.swift | ||
// iits | ||
// | ||
// Created by Guillaume Coquard on 13/02/24. | ||
// | ||
|
||
import SwiftUI | ||
import OSLog | ||
|
||
struct BilbaryView: View { | ||
|
||
@State | ||
private var view: RViewModel = .shared | ||
|
||
var body: some View { | ||
HStack(spacing: 0) { | ||
LibraryView() | ||
Divider() | ||
.padding(0) | ||
.opacity(view.isLibraryOpen ? 1 : 0) | ||
ContentView() | ||
} | ||
.padding(0) | ||
.ignoresSafeArea() | ||
.orientationUpdatesScreen() | ||
.sheet(isPresented: $view.displayOnboarding) { | ||
OnboardingView() | ||
} | ||
|
||
} | ||
} | ||
|
||
#Preview { | ||
BilbaryView() | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -139,5 +139,6 @@ struct RButton<L>: RActionable, View { | |
.onRelease { | ||
self.isActive = false | ||
} | ||
.disabled(!isShown) | ||
} | ||
} |
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
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,49 @@ | ||
// | ||
// EPUBScrollableContent.swift | ||
// Bilbary | ||
// | ||
// Created by Guillaume Coquard on 03/03/24. | ||
// | ||
|
||
import SwiftUI | ||
|
||
struct EPUBScrollableContent: View { | ||
|
||
@State | ||
private var view: RViewModel = .shared | ||
|
||
var book: Book | ||
|
||
var body: some View { | ||
VStack { | ||
ScrollView { | ||
VStack { | ||
ForEach((book.content?.strings ?? []).prefix(10), id: \.self) { paragraph in | ||
VStack { | ||
Text(paragraph) | ||
} | ||
.frame(maxWidth: .infinity) | ||
.padding(.vertical) | ||
} | ||
} | ||
.font(.title2) | ||
.fontDesign(.serif) | ||
.frame(minHeight: 200) | ||
.frame(maxWidth: .infinity) | ||
.padding(0) | ||
} | ||
.padding(0) | ||
} | ||
.padding(.vertical, 0) | ||
.padding(.horizontal, 64) | ||
// .frame(minWidth: view.screenWidth - 128) | ||
// .frame(width: view.screenWidth - 128) | ||
// .frame(maxWidth: view.screenWidth - 128) | ||
.containerRelativeFrame( | ||
.horizontal, | ||
count: 1, | ||
spacing: 128, | ||
alignment: .center | ||
) | ||
} | ||
} |
Oops, something went wrong.