mirror of
https://github.com/jellyfin/Swiftfin.git
synced 2024-11-27 08:10:23 +00:00
performance
This commit is contained in:
parent
34c2f1ad52
commit
b8869f10c1
@ -224,7 +224,7 @@ struct ContentView: View {
|
||||
}
|
||||
|
||||
let cache = SDImageCache(namespace: "tiny")
|
||||
cache.config.maxMemoryCost = 50 * 1024 * 1024 // 50MB memory
|
||||
cache.config.maxMemoryCost = 125 * 1024 * 1024 // 125MB memory
|
||||
cache.config.maxDiskSize = 1000 * 1024 * 1024 // 1000MB disk
|
||||
SDImageCachesManager.shared.addCache(cache)
|
||||
SDWebImageManager.defaultImageCache = SDImageCachesManager.shared
|
||||
|
@ -561,7 +561,7 @@ struct EpisodeItemView: View {
|
||||
Spacer().frame(height: 100);
|
||||
}.frame(maxHeight: .infinity)
|
||||
}
|
||||
}.padding(.top, 12).padding(.leading, UIDevice.current.userInterfaceIdiom == .pad ? 16 : 55).edgesIgnoringSafeArea(.leading)
|
||||
}.padding(.top, 16).padding(.leading, UIDevice.current.userInterfaceIdiom == .pad ? 16 : 55).edgesIgnoringSafeArea(.leading)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -607,7 +607,7 @@ struct MovieItemView: View {
|
||||
Spacer().frame(height: 195);
|
||||
}.frame(maxHeight: .infinity)
|
||||
}
|
||||
}.padding(.top, 12).padding(.leading, UIDevice.current.userInterfaceIdiom == .pad ? 16 : 55).edgesIgnoringSafeArea(.leading)
|
||||
}.padding(.top, 16).padding(.leading, UIDevice.current.userInterfaceIdiom == .pad ? 16 : 55).edgesIgnoringSafeArea(.leading)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -419,17 +419,17 @@ struct SeasonItemView: View {
|
||||
Text(fullItem.Studios.joined(separator: ", ")).font(.footnote).lineLimit(1).foregroundColor(Color.secondary)
|
||||
}.padding(.leading, 16).padding(.trailing,16)
|
||||
}
|
||||
Spacer().frame(height: 105);
|
||||
Spacer().frame(height: 125);
|
||||
}.frame(maxHeight: .infinity)
|
||||
}.padding(.trailing, 55)
|
||||
}.padding(.top, 12).padding(.leading, UIDevice.current.userInterfaceIdiom == .pad ? 16 : 0)
|
||||
}.padding(.trailing, UIDevice.current.userInterfaceIdiom == .pad ? 16 : 55).padding(.top, -16)
|
||||
}.padding(.top, 16).padding(.leading, UIDevice.current.userInterfaceIdiom == .pad ? 16 : 0)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.navigationBarTitleDisplayMode(.inline)
|
||||
.navigationTitle(item.Name)
|
||||
.navigationTitle("\(item.Name) - \(item.SeriesName ?? "")")
|
||||
}.onAppear(perform: loadData)
|
||||
}
|
||||
}
|
||||
|
@ -403,7 +403,7 @@ struct VideoPlayerView: View {
|
||||
}
|
||||
}.frame(width: 20)
|
||||
Spacer()
|
||||
Text(item.Name).font(.headline).fontWeight(.semibold).foregroundColor(.white).offset(x:-4)
|
||||
Text(item.Name).font(.headline).fontWeight(.semibold).foregroundColor(.white).offset(x:20)
|
||||
Spacer()
|
||||
Button() {
|
||||
vlcplayer.pause()
|
||||
@ -445,7 +445,7 @@ struct VideoPlayerView: View {
|
||||
}
|
||||
} label: {
|
||||
Image(systemName: playPauseButtonSystemName).font(.system(size: 55)).foregroundColor(.white)
|
||||
}.padding(20)
|
||||
}.padding(20).frame(width: 60, height: 60)
|
||||
Spacer()
|
||||
Button() {
|
||||
vlcplayer.jumpForward(15)
|
||||
|
Loading…
Reference in New Issue
Block a user