Skip to content
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
3 changes: 1 addition & 2 deletions simalytics/Components/CustomKFImage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@ struct CustomKFImage: View {
ProgressView()
}
.resizable()
.serialize(as: .JPEG)
.setProcessor(DownsamplingImageProcessor(size: CGSize(width: width, height: height)))
.cacheMemoryOnly(memoryCacheOnly)
.fromMemoryCacheOrRefresh(true)
.memoryCacheExpiration(.days(7))
.diskCacheExpiration(.days(30))
.cancelOnDisappear(true)
Expand Down
3 changes: 3 additions & 0 deletions simalytics/SimalyticsApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
//
// swift-format lint ./Documents/GitHub/simalytics-ios/ -r

import Kingfisher
import Sentry
import SimpleKeychain
import SwiftData
Expand Down Expand Up @@ -61,6 +62,8 @@ struct SimalyticsApp: App {
}()

init() {
ImageCache.default.diskStorage.config.sizeLimit = 500 * 1024 * 1024

SentrySDK.start { options in
if let configuredDSN = (Bundle.main.infoDictionary?["SENTRY_DSN"] as? String)?
.trimmingCharacters(in: .whitespacesAndNewlines),
Expand Down
2 changes: 1 addition & 1 deletion simalytics/Views/Explore/AnimeDetailView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ struct AnimeDetailView: View {

if animeDetails?.anime_type == "tv" {
if !filteredEpisodes.isEmpty {
VStack(alignment: .leading) {
LazyVStack(alignment: .leading) {
HStack {
Menu {
ForEach(seasons, id: \.self) { season in
Expand Down
2 changes: 1 addition & 1 deletion simalytics/Views/Explore/ShowDetailView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ struct ShowDetailView: View {
Spacer()

if !filteredEpisodes.isEmpty {
VStack(alignment: .leading) {
LazyVStack(alignment: .leading) {
HStack {
Menu {
ForEach(seasons, id: \.self) { season in
Expand Down