performance

This commit is contained in:
Aiden Vigue 2021-05-25 11:08:23 -04:00
parent 34c2f1ad52
commit b8869f10c1
No known key found for this signature in database
GPG Key ID: E7570472648F4544
5 changed files with 9 additions and 9 deletions

View File

@ -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

View File

@ -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)
}
}
}

View File

@ -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)
}
}
}

View File

@ -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)
}
}

View File

@ -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)