mirror of
https://github.com/kiwix/kiwix-apple.git
synced 2025-09-29 15:05:21 -04:00
Do not display the grid of ZIMs for custom apps
This commit is contained in:
parent
4cffee9f59
commit
97143cb05b
@ -37,7 +37,7 @@ struct Welcome: View {
|
|||||||
let showLibrary: (() -> Void)?
|
let showLibrary: (() -> Void)?
|
||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
if zimFiles.isEmpty {
|
if zimFiles.isEmpty || !FeatureFlags.hasLibrary {
|
||||||
ZStack {
|
ZStack {
|
||||||
LogoView()
|
LogoView()
|
||||||
welcomeContent
|
welcomeContent
|
||||||
@ -56,7 +56,7 @@ struct Welcome: View {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}.ignoresSafeArea()
|
}.ignoresSafeArea()
|
||||||
} else {
|
} else if FeatureFlags.hasLibrary {
|
||||||
LazyVGrid(
|
LazyVGrid(
|
||||||
columns: ([GridItem(.adaptive(minimum: 250, maximum: 500), spacing: 12)]),
|
columns: ([GridItem(.adaptive(minimum: 250, maximum: 500), spacing: 12)]),
|
||||||
alignment: .leading,
|
alignment: .leading,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user