Signed-off-by: Matt Bruce <mbrucedogs@gmail.com>
This commit is contained in:
parent
236f403e80
commit
ae49cb3729
@ -427,6 +427,7 @@
|
||||
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
|
||||
INFOPLIST_KEY_UILaunchScreen_Generation = YES;
|
||||
INFOPLIST_KEY_UISupportedInterfaceOrientations = "UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown";
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 18;
|
||||
LD_RUNPATH_SEARCH_PATHS = (
|
||||
"$(inherited)",
|
||||
"@executable_path/Frameworks",
|
||||
@ -459,6 +460,7 @@
|
||||
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
|
||||
INFOPLIST_KEY_UILaunchScreen_Generation = YES;
|
||||
INFOPLIST_KEY_UISupportedInterfaceOrientations = "UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown";
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 18;
|
||||
LD_RUNPATH_SEARCH_PATHS = (
|
||||
"$(inherited)",
|
||||
"@executable_path/Frameworks",
|
||||
|
||||
@ -123,7 +123,6 @@ struct SoundCategoryView: View {
|
||||
SoundCard(
|
||||
sound: sound,
|
||||
isSelected: selectedSound?.id == sound.id,
|
||||
isPlaying: viewModel.isPlaying && selectedSound?.id == sound.id,
|
||||
isPreviewing: viewModel.isPreviewing && viewModel.previewSound?.id == sound.id,
|
||||
onSelect: {
|
||||
viewModel.selectSound(sound)
|
||||
@ -171,7 +170,6 @@ struct CategoryTab: View {
|
||||
struct SoundCard: View {
|
||||
let sound: Sound
|
||||
let isSelected: Bool
|
||||
let isPlaying: Bool
|
||||
let isPreviewing: Bool
|
||||
let onSelect: () -> Void
|
||||
let onPreview: () -> Void
|
||||
@ -188,14 +186,6 @@ struct SoundCard: View {
|
||||
.font(.title3)
|
||||
.foregroundColor(isSelected ? .white : UIConstants.Colors.primaryText)
|
||||
|
||||
if isPlaying {
|
||||
Circle()
|
||||
.stroke(UIConstants.Colors.accentColor, lineWidth: 2)
|
||||
.frame(width: 58, height: 58)
|
||||
.scaleEffect(1.05)
|
||||
.animation(.easeInOut(duration: 1).repeatForever(autoreverses: true), value: isPlaying)
|
||||
}
|
||||
|
||||
if isPreviewing {
|
||||
Circle()
|
||||
.stroke(UIConstants.Colors.accentColor, lineWidth: 2)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user