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_UIApplicationSupportsIndirectInputEvents = YES;
|
||||||
INFOPLIST_KEY_UILaunchScreen_Generation = YES;
|
INFOPLIST_KEY_UILaunchScreen_Generation = YES;
|
||||||
INFOPLIST_KEY_UISupportedInterfaceOrientations = "UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown";
|
INFOPLIST_KEY_UISupportedInterfaceOrientations = "UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown";
|
||||||
|
IPHONEOS_DEPLOYMENT_TARGET = 18;
|
||||||
LD_RUNPATH_SEARCH_PATHS = (
|
LD_RUNPATH_SEARCH_PATHS = (
|
||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
"@executable_path/Frameworks",
|
"@executable_path/Frameworks",
|
||||||
@ -459,6 +460,7 @@
|
|||||||
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
|
INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES;
|
||||||
INFOPLIST_KEY_UILaunchScreen_Generation = YES;
|
INFOPLIST_KEY_UILaunchScreen_Generation = YES;
|
||||||
INFOPLIST_KEY_UISupportedInterfaceOrientations = "UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown";
|
INFOPLIST_KEY_UISupportedInterfaceOrientations = "UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown";
|
||||||
|
IPHONEOS_DEPLOYMENT_TARGET = 18;
|
||||||
LD_RUNPATH_SEARCH_PATHS = (
|
LD_RUNPATH_SEARCH_PATHS = (
|
||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
"@executable_path/Frameworks",
|
"@executable_path/Frameworks",
|
||||||
|
|||||||
@ -123,7 +123,6 @@ struct SoundCategoryView: View {
|
|||||||
SoundCard(
|
SoundCard(
|
||||||
sound: sound,
|
sound: sound,
|
||||||
isSelected: selectedSound?.id == sound.id,
|
isSelected: selectedSound?.id == sound.id,
|
||||||
isPlaying: viewModel.isPlaying && selectedSound?.id == sound.id,
|
|
||||||
isPreviewing: viewModel.isPreviewing && viewModel.previewSound?.id == sound.id,
|
isPreviewing: viewModel.isPreviewing && viewModel.previewSound?.id == sound.id,
|
||||||
onSelect: {
|
onSelect: {
|
||||||
viewModel.selectSound(sound)
|
viewModel.selectSound(sound)
|
||||||
@ -171,7 +170,6 @@ struct CategoryTab: View {
|
|||||||
struct SoundCard: View {
|
struct SoundCard: View {
|
||||||
let sound: Sound
|
let sound: Sound
|
||||||
let isSelected: Bool
|
let isSelected: Bool
|
||||||
let isPlaying: Bool
|
|
||||||
let isPreviewing: Bool
|
let isPreviewing: Bool
|
||||||
let onSelect: () -> Void
|
let onSelect: () -> Void
|
||||||
let onPreview: () -> Void
|
let onPreview: () -> Void
|
||||||
@ -188,14 +186,6 @@ struct SoundCard: View {
|
|||||||
.font(.title3)
|
.font(.title3)
|
||||||
.foregroundColor(isSelected ? .white : UIConstants.Colors.primaryText)
|
.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 {
|
if isPreviewing {
|
||||||
Circle()
|
Circle()
|
||||||
.stroke(UIConstants.Colors.accentColor, lineWidth: 2)
|
.stroke(UIConstants.Colors.accentColor, lineWidth: 2)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user