From 78153e23856d89e55e21cd5dbeaca78e4667dc99 Mon Sep 17 00:00:00 2001 From: Peter Yaacoub Date: Fri, 9 Jul 2021 17:34:05 +0300 Subject: [PATCH] =?UTF-8?q?=E2=AD=90=EF=B8=8F=20Add=20new=20demo=20project?= =?UTF-8?q?=20and=20restructure=20repository?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The repository was initially only supposed to house the "Demo-ShazamKit" project, but it would have been a hassle to have a repository for each demo project I make. I restructured it to make it more flexible and accommodate new projects in the future, including the new "Animate UICollectionViewCell highlight" playground in the "Swift Tips" directory. Having the prefix "Demo-" in front of every project name was unuseful. I renamed "Demo-ShazamKit" to its future associated article "ShazamKit - A first look". I also put it in the "Swift" directory. The repository's README.md needs to include a link to every project, organised by type, to make it easily accessible to users. I added these links and associated them with a date. That date would either be the date of publication or, when available, the date of publication of their corresponding article. Every project needs its README.md file to disclose corresponding articles, availability and frameworks used. I added the file to the two projects with the link to the article commented out before it is published. Projects in the "Swift Tips" category also have a preview video in that file. --- .gitignore | 4 +- README.md | 18 ++-- .../Contents.swift | 81 ++++++++++++++++++ .../contents.xcplayground | 4 + .../README.md | 17 ++++ Swift/ShazamKit - A first look/README.md | 17 ++++ .../AccentColor.colorset/Contents.json | 0 .../AppIcon.appiconset/Contents.json | 0 .../AppIcon.appiconset/appstore1024.png | Bin .../AppIcon.appiconset/ipad152.png | Bin .../AppIcon.appiconset/ipad76.png | Bin .../AppIcon.appiconset/ipadNotification20.png | Bin .../AppIcon.appiconset/ipadNotification40.png | Bin .../AppIcon.appiconset/ipadPro167.png | Bin .../AppIcon.appiconset/ipadSettings29.png | Bin .../AppIcon.appiconset/ipadSettings58.png | Bin .../AppIcon.appiconset/ipadSpotlight40.png | Bin .../AppIcon.appiconset/ipadSpotlight80.png | Bin .../AppIcon.appiconset/iphone120.png | Bin .../AppIcon.appiconset/iphone180.png | Bin .../AppIcon.appiconset/mac1024.png | Bin .../AppIcon.appiconset/mac128.png | Bin .../AppIcon.appiconset/mac16.png | Bin .../AppIcon.appiconset/mac256.png | Bin .../AppIcon.appiconset/mac32.png | Bin .../AppIcon.appiconset/mac512.png | Bin .../AppIcon.appiconset/mac64.png | Bin .../AppIcon.appiconset/notification40.png | Bin .../AppIcon.appiconset/notification60.png | Bin .../AppIcon.appiconset/settings58.png | Bin .../AppIcon.appiconset/settings87.png | Bin .../AppIcon.appiconset/spotlight120.png | Bin .../AppIcon.appiconset/spotlight80.png | Bin .../Shared}/Assets.xcassets/Contents.json | 0 .../Shared}/Audio.mp3 | Bin .../Shared}/Demo_ShazamKitApp.swift | 0 .../Shared}/Models/SongMatch.swift | 0 .../Shared}/ViewModels/ContentViewModel.swift | 0 .../Shared}/Views/ContentView.swift | 0 .../project.pbxproj | 54 ++++++------ .../contents.xcworkspacedata | 7 ++ .../xcshareddata/IDEWorkspaceChecks.plist | 0 42 files changed, 170 insertions(+), 32 deletions(-) create mode 100644 Swift Tips/Animate UICollectionViewCell highlight/Animate UICollectionViewCell highlight.playground/Contents.swift create mode 100644 Swift Tips/Animate UICollectionViewCell highlight/Animate UICollectionViewCell highlight.playground/contents.xcplayground create mode 100644 Swift Tips/Animate UICollectionViewCell highlight/README.md create mode 100644 Swift/ShazamKit - A first look/README.md rename {Shared => Swift/ShazamKit - A first look/Shared}/Assets.xcassets/AccentColor.colorset/Contents.json (100%) rename {Shared => Swift/ShazamKit - A first look/Shared}/Assets.xcassets/AppIcon.appiconset/Contents.json (100%) rename {Shared => Swift/ShazamKit - A first look/Shared}/Assets.xcassets/AppIcon.appiconset/appstore1024.png (100%) rename {Shared => Swift/ShazamKit - A first look/Shared}/Assets.xcassets/AppIcon.appiconset/ipad152.png (100%) rename {Shared => Swift/ShazamKit - A first look/Shared}/Assets.xcassets/AppIcon.appiconset/ipad76.png (100%) rename {Shared => Swift/ShazamKit - A first look/Shared}/Assets.xcassets/AppIcon.appiconset/ipadNotification20.png (100%) rename {Shared => Swift/ShazamKit - A first look/Shared}/Assets.xcassets/AppIcon.appiconset/ipadNotification40.png (100%) rename {Shared => Swift/ShazamKit - A first look/Shared}/Assets.xcassets/AppIcon.appiconset/ipadPro167.png (100%) rename {Shared => Swift/ShazamKit - A first look/Shared}/Assets.xcassets/AppIcon.appiconset/ipadSettings29.png (100%) rename {Shared => Swift/ShazamKit - A first look/Shared}/Assets.xcassets/AppIcon.appiconset/ipadSettings58.png (100%) rename {Shared => Swift/ShazamKit - A first look/Shared}/Assets.xcassets/AppIcon.appiconset/ipadSpotlight40.png (100%) rename {Shared => Swift/ShazamKit - A first look/Shared}/Assets.xcassets/AppIcon.appiconset/ipadSpotlight80.png (100%) rename {Shared => Swift/ShazamKit - A first look/Shared}/Assets.xcassets/AppIcon.appiconset/iphone120.png (100%) rename {Shared => Swift/ShazamKit - A first look/Shared}/Assets.xcassets/AppIcon.appiconset/iphone180.png (100%) rename {Shared => Swift/ShazamKit - A first look/Shared}/Assets.xcassets/AppIcon.appiconset/mac1024.png (100%) rename {Shared => Swift/ShazamKit - A first look/Shared}/Assets.xcassets/AppIcon.appiconset/mac128.png (100%) rename {Shared => Swift/ShazamKit - A first look/Shared}/Assets.xcassets/AppIcon.appiconset/mac16.png (100%) rename {Shared => Swift/ShazamKit - A first look/Shared}/Assets.xcassets/AppIcon.appiconset/mac256.png (100%) rename {Shared => Swift/ShazamKit - A first look/Shared}/Assets.xcassets/AppIcon.appiconset/mac32.png (100%) rename {Shared => Swift/ShazamKit - A first look/Shared}/Assets.xcassets/AppIcon.appiconset/mac512.png (100%) rename {Shared => Swift/ShazamKit - A first look/Shared}/Assets.xcassets/AppIcon.appiconset/mac64.png (100%) rename {Shared => Swift/ShazamKit - A first look/Shared}/Assets.xcassets/AppIcon.appiconset/notification40.png (100%) rename {Shared => Swift/ShazamKit - A first look/Shared}/Assets.xcassets/AppIcon.appiconset/notification60.png (100%) rename {Shared => Swift/ShazamKit - A first look/Shared}/Assets.xcassets/AppIcon.appiconset/settings58.png (100%) rename {Shared => Swift/ShazamKit - A first look/Shared}/Assets.xcassets/AppIcon.appiconset/settings87.png (100%) rename {Shared => Swift/ShazamKit - A first look/Shared}/Assets.xcassets/AppIcon.appiconset/spotlight120.png (100%) rename {Shared => Swift/ShazamKit - A first look/Shared}/Assets.xcassets/AppIcon.appiconset/spotlight80.png (100%) rename {Shared => Swift/ShazamKit - A first look/Shared}/Assets.xcassets/Contents.json (100%) rename {Shared => Swift/ShazamKit - A first look/Shared}/Audio.mp3 (100%) rename {Shared => Swift/ShazamKit - A first look/Shared}/Demo_ShazamKitApp.swift (100%) rename {Shared => Swift/ShazamKit - A first look/Shared}/Models/SongMatch.swift (100%) rename {Shared => Swift/ShazamKit - A first look/Shared}/ViewModels/ContentViewModel.swift (100%) rename {Shared => Swift/ShazamKit - A first look/Shared}/Views/ContentView.swift (100%) rename {Demo-ShazamKit.xcodeproj => Swift/ShazamKit - A first look/ShazamKit - A first look.xcodeproj}/project.pbxproj (90%) create mode 100644 Swift/ShazamKit - A first look/ShazamKit - A first look.xcodeproj/project.xcworkspace/contents.xcworkspacedata rename {Demo-ShazamKit.xcodeproj => Swift/ShazamKit - A first look/ShazamKit - A first look.xcodeproj}/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist (100%) diff --git a/.gitignore b/.gitignore index bd7480a..432034a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ .DS_Store -xcuserdata/ \ No newline at end of file +xcuserdata/ +timeline.xctimeline +playground.xcworkspace \ No newline at end of file diff --git a/README.md b/README.md index 7de91ea..223c6aa 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,13 @@ -# Demo-ShazamKit +# Demo Projects -*Updated for Xcode 13 beta 2.* - - -It is built using SwiftUI and ShazamKit. +Most of them are associated with an article I published on my website. + +## Swift + +- 2021/07/28 - [ShazamKit: A first look]() + +## Swift Tips + +- 2021/07/28 - [Animate UICollectionViewCell highlight]() diff --git a/Swift Tips/Animate UICollectionViewCell highlight/Animate UICollectionViewCell highlight.playground/Contents.swift b/Swift Tips/Animate UICollectionViewCell highlight/Animate UICollectionViewCell highlight.playground/Contents.swift new file mode 100644 index 0000000..458e436 --- /dev/null +++ b/Swift Tips/Animate UICollectionViewCell highlight/Animate UICollectionViewCell highlight.playground/Contents.swift @@ -0,0 +1,81 @@ +import UIKit +import PlaygroundSupport + + + +//MARK:- View Controller + +class CollectionViewController: UICollectionViewController { + + + + //MARK:- Override Methods + + override func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell { + let cell = collectionView.dequeueReusableCell(withReuseIdentifier: "cell", for: indexPath) + cell.backgroundColor = .systemPink + cell.layer.cornerRadius = 25 + return cell + } + + override func collectionView(_ collectionView: UICollectionView, didHighlightItemAt indexPath: IndexPath) { + let cell = collectionView.cellForItem(at: indexPath) + UIView.animate(withDuration: 0.5, delay: 0, options: .beginFromCurrentState, animations: { + cell?.transform = CGAffineTransform(scaleX: 0.90, y: 0.90) + }) + } + + override func collectionView(_ collectionView: UICollectionView, didUnhighlightItemAt indexPath: IndexPath) { + let cell = collectionView.cellForItem(at: indexPath) + UIView.animate(withDuration: 0.5, delay: 0, options: .beginFromCurrentState, animations: { + cell?.transform = .identity + }) + } + + override func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int { + return 12 + } + + override func numberOfSections(in collectionView: UICollectionView) -> Int { + return 1 + } + + override func viewDidLoad() { + super.viewDidLoad() + setup() + } + + + + //MARK:- Private Methods + + private func setup() { + collectionView.backgroundColor = .white + collectionView.delaysContentTouches = false + collectionView.register(UICollectionViewCell.self, forCellWithReuseIdentifier: "cell") + } + +} + + + +//MARK:- Extensions + +extension CollectionViewController: UICollectionViewDelegateFlowLayout { + + func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, insetForSectionAt section: Int) -> UIEdgeInsets { + return UIEdgeInsets(top: 10, left: 10, bottom: 10, right: 10) + } + + func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize { + let size = (Int(collectionView.frame.width) - 10) / 3 - 2 * 10 + return CGSize(width: size, height: size) + } + +} + + + +//MARK:- Live View + +PlaygroundPage.current.liveView = CollectionViewController(collectionViewLayout: UICollectionViewFlowLayout()) diff --git a/Swift Tips/Animate UICollectionViewCell highlight/Animate UICollectionViewCell highlight.playground/contents.xcplayground b/Swift Tips/Animate UICollectionViewCell highlight/Animate UICollectionViewCell highlight.playground/contents.xcplayground new file mode 100644 index 0000000..ebe9554 --- /dev/null +++ b/Swift Tips/Animate UICollectionViewCell highlight/Animate UICollectionViewCell highlight.playground/contents.xcplayground @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/Swift Tips/Animate UICollectionViewCell highlight/README.md b/Swift Tips/Animate UICollectionViewCell highlight/README.md new file mode 100644 index 0000000..4bb0fa1 --- /dev/null +++ b/Swift Tips/Animate UICollectionViewCell highlight/README.md @@ -0,0 +1,17 @@ +# Animate UICollectionViewCell highlight + + + +### Availability + +Xcode 13.0+ (Beta) + +### Frameworks + +PlaygroundSupport +
+UIKit + +
+ +https://user-images.githubusercontent.com/34966652/125084746-8b509480-e0d2-11eb-8828-edd50fbe6415.mov diff --git a/Swift/ShazamKit - A first look/README.md b/Swift/ShazamKit - A first look/README.md new file mode 100644 index 0000000..7558209 --- /dev/null +++ b/Swift/ShazamKit - A first look/README.md @@ -0,0 +1,17 @@ +# ShazamKit: A first look + + + +### Availability + +iOS 15.0+ (Beta) +
+Xcode 13.0+ (Beta) + +### Frameworks + +Foundation +
+ShazamKit +
+SwiftUI diff --git a/Shared/Assets.xcassets/AccentColor.colorset/Contents.json b/Swift/ShazamKit - A first look/Shared/Assets.xcassets/AccentColor.colorset/Contents.json similarity index 100% rename from Shared/Assets.xcassets/AccentColor.colorset/Contents.json rename to Swift/ShazamKit - A first look/Shared/Assets.xcassets/AccentColor.colorset/Contents.json diff --git a/Shared/Assets.xcassets/AppIcon.appiconset/Contents.json b/Swift/ShazamKit - A first look/Shared/Assets.xcassets/AppIcon.appiconset/Contents.json similarity index 100% rename from Shared/Assets.xcassets/AppIcon.appiconset/Contents.json rename to Swift/ShazamKit - A first look/Shared/Assets.xcassets/AppIcon.appiconset/Contents.json diff --git a/Shared/Assets.xcassets/AppIcon.appiconset/appstore1024.png b/Swift/ShazamKit - A first look/Shared/Assets.xcassets/AppIcon.appiconset/appstore1024.png similarity index 100% rename from Shared/Assets.xcassets/AppIcon.appiconset/appstore1024.png rename to Swift/ShazamKit - A first look/Shared/Assets.xcassets/AppIcon.appiconset/appstore1024.png diff --git a/Shared/Assets.xcassets/AppIcon.appiconset/ipad152.png b/Swift/ShazamKit - A first look/Shared/Assets.xcassets/AppIcon.appiconset/ipad152.png similarity index 100% rename from Shared/Assets.xcassets/AppIcon.appiconset/ipad152.png rename to Swift/ShazamKit - A first look/Shared/Assets.xcassets/AppIcon.appiconset/ipad152.png diff --git a/Shared/Assets.xcassets/AppIcon.appiconset/ipad76.png b/Swift/ShazamKit - A first look/Shared/Assets.xcassets/AppIcon.appiconset/ipad76.png similarity index 100% rename from Shared/Assets.xcassets/AppIcon.appiconset/ipad76.png rename to Swift/ShazamKit - A first look/Shared/Assets.xcassets/AppIcon.appiconset/ipad76.png diff --git a/Shared/Assets.xcassets/AppIcon.appiconset/ipadNotification20.png b/Swift/ShazamKit - A first look/Shared/Assets.xcassets/AppIcon.appiconset/ipadNotification20.png similarity index 100% rename from Shared/Assets.xcassets/AppIcon.appiconset/ipadNotification20.png rename to Swift/ShazamKit - A first look/Shared/Assets.xcassets/AppIcon.appiconset/ipadNotification20.png diff --git a/Shared/Assets.xcassets/AppIcon.appiconset/ipadNotification40.png b/Swift/ShazamKit - A first look/Shared/Assets.xcassets/AppIcon.appiconset/ipadNotification40.png similarity index 100% rename from Shared/Assets.xcassets/AppIcon.appiconset/ipadNotification40.png rename to Swift/ShazamKit - A first look/Shared/Assets.xcassets/AppIcon.appiconset/ipadNotification40.png diff --git a/Shared/Assets.xcassets/AppIcon.appiconset/ipadPro167.png b/Swift/ShazamKit - A first look/Shared/Assets.xcassets/AppIcon.appiconset/ipadPro167.png similarity index 100% rename from Shared/Assets.xcassets/AppIcon.appiconset/ipadPro167.png rename to Swift/ShazamKit - A first look/Shared/Assets.xcassets/AppIcon.appiconset/ipadPro167.png diff --git a/Shared/Assets.xcassets/AppIcon.appiconset/ipadSettings29.png b/Swift/ShazamKit - A first look/Shared/Assets.xcassets/AppIcon.appiconset/ipadSettings29.png similarity index 100% rename from Shared/Assets.xcassets/AppIcon.appiconset/ipadSettings29.png rename to Swift/ShazamKit - A first look/Shared/Assets.xcassets/AppIcon.appiconset/ipadSettings29.png diff --git a/Shared/Assets.xcassets/AppIcon.appiconset/ipadSettings58.png b/Swift/ShazamKit - A first look/Shared/Assets.xcassets/AppIcon.appiconset/ipadSettings58.png similarity index 100% rename from Shared/Assets.xcassets/AppIcon.appiconset/ipadSettings58.png rename to Swift/ShazamKit - A first look/Shared/Assets.xcassets/AppIcon.appiconset/ipadSettings58.png diff --git a/Shared/Assets.xcassets/AppIcon.appiconset/ipadSpotlight40.png b/Swift/ShazamKit - A first look/Shared/Assets.xcassets/AppIcon.appiconset/ipadSpotlight40.png similarity index 100% rename from Shared/Assets.xcassets/AppIcon.appiconset/ipadSpotlight40.png rename to Swift/ShazamKit - A first look/Shared/Assets.xcassets/AppIcon.appiconset/ipadSpotlight40.png diff --git a/Shared/Assets.xcassets/AppIcon.appiconset/ipadSpotlight80.png b/Swift/ShazamKit - A first look/Shared/Assets.xcassets/AppIcon.appiconset/ipadSpotlight80.png similarity index 100% rename from Shared/Assets.xcassets/AppIcon.appiconset/ipadSpotlight80.png rename to Swift/ShazamKit - A first look/Shared/Assets.xcassets/AppIcon.appiconset/ipadSpotlight80.png diff --git a/Shared/Assets.xcassets/AppIcon.appiconset/iphone120.png b/Swift/ShazamKit - A first look/Shared/Assets.xcassets/AppIcon.appiconset/iphone120.png similarity index 100% rename from Shared/Assets.xcassets/AppIcon.appiconset/iphone120.png rename to Swift/ShazamKit - A first look/Shared/Assets.xcassets/AppIcon.appiconset/iphone120.png diff --git a/Shared/Assets.xcassets/AppIcon.appiconset/iphone180.png b/Swift/ShazamKit - A first look/Shared/Assets.xcassets/AppIcon.appiconset/iphone180.png similarity index 100% rename from Shared/Assets.xcassets/AppIcon.appiconset/iphone180.png rename to Swift/ShazamKit - A first look/Shared/Assets.xcassets/AppIcon.appiconset/iphone180.png diff --git a/Shared/Assets.xcassets/AppIcon.appiconset/mac1024.png b/Swift/ShazamKit - A first look/Shared/Assets.xcassets/AppIcon.appiconset/mac1024.png similarity index 100% rename from Shared/Assets.xcassets/AppIcon.appiconset/mac1024.png rename to Swift/ShazamKit - A first look/Shared/Assets.xcassets/AppIcon.appiconset/mac1024.png diff --git a/Shared/Assets.xcassets/AppIcon.appiconset/mac128.png b/Swift/ShazamKit - A first look/Shared/Assets.xcassets/AppIcon.appiconset/mac128.png similarity index 100% rename from Shared/Assets.xcassets/AppIcon.appiconset/mac128.png rename to Swift/ShazamKit - A first look/Shared/Assets.xcassets/AppIcon.appiconset/mac128.png diff --git a/Shared/Assets.xcassets/AppIcon.appiconset/mac16.png b/Swift/ShazamKit - A first look/Shared/Assets.xcassets/AppIcon.appiconset/mac16.png similarity index 100% rename from Shared/Assets.xcassets/AppIcon.appiconset/mac16.png rename to Swift/ShazamKit - A first look/Shared/Assets.xcassets/AppIcon.appiconset/mac16.png diff --git a/Shared/Assets.xcassets/AppIcon.appiconset/mac256.png b/Swift/ShazamKit - A first look/Shared/Assets.xcassets/AppIcon.appiconset/mac256.png similarity index 100% rename from Shared/Assets.xcassets/AppIcon.appiconset/mac256.png rename to Swift/ShazamKit - A first look/Shared/Assets.xcassets/AppIcon.appiconset/mac256.png diff --git a/Shared/Assets.xcassets/AppIcon.appiconset/mac32.png b/Swift/ShazamKit - A first look/Shared/Assets.xcassets/AppIcon.appiconset/mac32.png similarity index 100% rename from Shared/Assets.xcassets/AppIcon.appiconset/mac32.png rename to Swift/ShazamKit - A first look/Shared/Assets.xcassets/AppIcon.appiconset/mac32.png diff --git a/Shared/Assets.xcassets/AppIcon.appiconset/mac512.png b/Swift/ShazamKit - A first look/Shared/Assets.xcassets/AppIcon.appiconset/mac512.png similarity index 100% rename from Shared/Assets.xcassets/AppIcon.appiconset/mac512.png rename to Swift/ShazamKit - A first look/Shared/Assets.xcassets/AppIcon.appiconset/mac512.png diff --git a/Shared/Assets.xcassets/AppIcon.appiconset/mac64.png b/Swift/ShazamKit - A first look/Shared/Assets.xcassets/AppIcon.appiconset/mac64.png similarity index 100% rename from Shared/Assets.xcassets/AppIcon.appiconset/mac64.png rename to Swift/ShazamKit - A first look/Shared/Assets.xcassets/AppIcon.appiconset/mac64.png diff --git a/Shared/Assets.xcassets/AppIcon.appiconset/notification40.png b/Swift/ShazamKit - A first look/Shared/Assets.xcassets/AppIcon.appiconset/notification40.png similarity index 100% rename from Shared/Assets.xcassets/AppIcon.appiconset/notification40.png rename to Swift/ShazamKit - A first look/Shared/Assets.xcassets/AppIcon.appiconset/notification40.png diff --git a/Shared/Assets.xcassets/AppIcon.appiconset/notification60.png b/Swift/ShazamKit - A first look/Shared/Assets.xcassets/AppIcon.appiconset/notification60.png similarity index 100% rename from Shared/Assets.xcassets/AppIcon.appiconset/notification60.png rename to Swift/ShazamKit - A first look/Shared/Assets.xcassets/AppIcon.appiconset/notification60.png diff --git a/Shared/Assets.xcassets/AppIcon.appiconset/settings58.png b/Swift/ShazamKit - A first look/Shared/Assets.xcassets/AppIcon.appiconset/settings58.png similarity index 100% rename from Shared/Assets.xcassets/AppIcon.appiconset/settings58.png rename to Swift/ShazamKit - A first look/Shared/Assets.xcassets/AppIcon.appiconset/settings58.png diff --git a/Shared/Assets.xcassets/AppIcon.appiconset/settings87.png b/Swift/ShazamKit - A first look/Shared/Assets.xcassets/AppIcon.appiconset/settings87.png similarity index 100% rename from Shared/Assets.xcassets/AppIcon.appiconset/settings87.png rename to Swift/ShazamKit - A first look/Shared/Assets.xcassets/AppIcon.appiconset/settings87.png diff --git a/Shared/Assets.xcassets/AppIcon.appiconset/spotlight120.png b/Swift/ShazamKit - A first look/Shared/Assets.xcassets/AppIcon.appiconset/spotlight120.png similarity index 100% rename from Shared/Assets.xcassets/AppIcon.appiconset/spotlight120.png rename to Swift/ShazamKit - A first look/Shared/Assets.xcassets/AppIcon.appiconset/spotlight120.png diff --git a/Shared/Assets.xcassets/AppIcon.appiconset/spotlight80.png b/Swift/ShazamKit - A first look/Shared/Assets.xcassets/AppIcon.appiconset/spotlight80.png similarity index 100% rename from Shared/Assets.xcassets/AppIcon.appiconset/spotlight80.png rename to Swift/ShazamKit - A first look/Shared/Assets.xcassets/AppIcon.appiconset/spotlight80.png diff --git a/Shared/Assets.xcassets/Contents.json b/Swift/ShazamKit - A first look/Shared/Assets.xcassets/Contents.json similarity index 100% rename from Shared/Assets.xcassets/Contents.json rename to Swift/ShazamKit - A first look/Shared/Assets.xcassets/Contents.json diff --git a/Shared/Audio.mp3 b/Swift/ShazamKit - A first look/Shared/Audio.mp3 similarity index 100% rename from Shared/Audio.mp3 rename to Swift/ShazamKit - A first look/Shared/Audio.mp3 diff --git a/Shared/Demo_ShazamKitApp.swift b/Swift/ShazamKit - A first look/Shared/Demo_ShazamKitApp.swift similarity index 100% rename from Shared/Demo_ShazamKitApp.swift rename to Swift/ShazamKit - A first look/Shared/Demo_ShazamKitApp.swift diff --git a/Shared/Models/SongMatch.swift b/Swift/ShazamKit - A first look/Shared/Models/SongMatch.swift similarity index 100% rename from Shared/Models/SongMatch.swift rename to Swift/ShazamKit - A first look/Shared/Models/SongMatch.swift diff --git a/Shared/ViewModels/ContentViewModel.swift b/Swift/ShazamKit - A first look/Shared/ViewModels/ContentViewModel.swift similarity index 100% rename from Shared/ViewModels/ContentViewModel.swift rename to Swift/ShazamKit - A first look/Shared/ViewModels/ContentViewModel.swift diff --git a/Shared/Views/ContentView.swift b/Swift/ShazamKit - A first look/Shared/Views/ContentView.swift similarity index 100% rename from Shared/Views/ContentView.swift rename to Swift/ShazamKit - A first look/Shared/Views/ContentView.swift diff --git a/Demo-ShazamKit.xcodeproj/project.pbxproj b/Swift/ShazamKit - A first look/ShazamKit - A first look.xcodeproj/project.pbxproj similarity index 90% rename from Demo-ShazamKit.xcodeproj/project.pbxproj rename to Swift/ShazamKit - A first look/ShazamKit - A first look.xcodeproj/project.pbxproj index f9cc031..2749058 100644 --- a/Demo-ShazamKit.xcodeproj/project.pbxproj +++ b/Swift/ShazamKit - A first look/ShazamKit - A first look.xcodeproj/project.pbxproj @@ -28,8 +28,8 @@ D0C0644E269707A600948EFE /* Demo_ShazamKitApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Demo_ShazamKitApp.swift; sourceTree = ""; }; D0C0644F269707A600948EFE /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = ""; }; D0C06450269707A800948EFE /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; - D0C06455269707A800948EFE /* Demo-ShazamKit.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Demo-ShazamKit.app"; sourceTree = BUILT_PRODUCTS_DIR; }; - D0C0645B269707A800948EFE /* Demo-ShazamKit.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Demo-ShazamKit.app"; sourceTree = BUILT_PRODUCTS_DIR; }; + D0C06455269707A800948EFE /* ShazamKit - A first look.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "ShazamKit - A first look.app"; sourceTree = BUILT_PRODUCTS_DIR; }; + D0C0645B269707A800948EFE /* ShazamKit - A first look.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "ShazamKit - A first look.app"; sourceTree = BUILT_PRODUCTS_DIR; }; D0C064752697094E00948EFE /* SongMatch.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SongMatch.swift; sourceTree = ""; }; D0C064772697094E00948EFE /* ContentViewModel.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ContentViewModel.swift; sourceTree = ""; }; D0C064A02697100600948EFE /* Audio.mp3 */ = {isa = PBXFileReference; lastKnownFileType = audio.mp3; path = Audio.mp3; sourceTree = ""; }; @@ -78,8 +78,8 @@ D0C06456269707A800948EFE /* Products */ = { isa = PBXGroup; children = ( - D0C06455269707A800948EFE /* Demo-ShazamKit.app */, - D0C0645B269707A800948EFE /* Demo-ShazamKit.app */, + D0C06455269707A800948EFE /* ShazamKit - A first look.app */, + D0C0645B269707A800948EFE /* ShazamKit - A first look.app */, ); name = Products; sourceTree = ""; @@ -111,9 +111,9 @@ /* End PBXGroup section */ /* Begin PBXNativeTarget section */ - D0C06454269707A800948EFE /* Demo-ShazamKit (iOS) */ = { + D0C06454269707A800948EFE /* ShazamKit - A first look (iOS) */ = { isa = PBXNativeTarget; - buildConfigurationList = D0C06464269707A800948EFE /* Build configuration list for PBXNativeTarget "Demo-ShazamKit (iOS)" */; + buildConfigurationList = D0C06464269707A800948EFE /* Build configuration list for PBXNativeTarget "ShazamKit - A first look (iOS)" */; buildPhases = ( D0C06451269707A800948EFE /* Sources */, D0C06452269707A800948EFE /* Frameworks */, @@ -123,14 +123,14 @@ ); dependencies = ( ); - name = "Demo-ShazamKit (iOS)"; + name = "ShazamKit - A first look (iOS)"; productName = "Demo-ShazamKit (iOS)"; - productReference = D0C06455269707A800948EFE /* Demo-ShazamKit.app */; + productReference = D0C06455269707A800948EFE /* ShazamKit - A first look.app */; productType = "com.apple.product-type.application"; }; - D0C0645A269707A800948EFE /* Demo-ShazamKit (macOS) */ = { + D0C0645A269707A800948EFE /* ShazamKit - A first look (macOS) */ = { isa = PBXNativeTarget; - buildConfigurationList = D0C06467269707A800948EFE /* Build configuration list for PBXNativeTarget "Demo-ShazamKit (macOS)" */; + buildConfigurationList = D0C06467269707A800948EFE /* Build configuration list for PBXNativeTarget "ShazamKit - A first look (macOS)" */; buildPhases = ( D0C06457269707A800948EFE /* Sources */, D0C06458269707A800948EFE /* Frameworks */, @@ -140,9 +140,9 @@ ); dependencies = ( ); - name = "Demo-ShazamKit (macOS)"; + name = "ShazamKit - A first look (macOS)"; productName = "Demo-ShazamKit (macOS)"; - productReference = D0C0645B269707A800948EFE /* Demo-ShazamKit.app */; + productReference = D0C0645B269707A800948EFE /* ShazamKit - A first look.app */; productType = "com.apple.product-type.application"; }; /* End PBXNativeTarget section */ @@ -163,7 +163,7 @@ }; }; }; - buildConfigurationList = D0C0644C269707A600948EFE /* Build configuration list for PBXProject "Demo-ShazamKit" */; + buildConfigurationList = D0C0644C269707A600948EFE /* Build configuration list for PBXProject "ShazamKit - A first look" */; compatibilityVersion = "Xcode 13.0"; developmentRegion = en; hasScannedForEncodings = 0; @@ -176,8 +176,8 @@ projectDirPath = ""; projectRoot = ""; targets = ( - D0C06454269707A800948EFE /* Demo-ShazamKit (iOS) */, - D0C0645A269707A800948EFE /* Demo-ShazamKit (macOS) */, + D0C06454269707A800948EFE /* ShazamKit - A first look (iOS) */, + D0C0645A269707A800948EFE /* ShazamKit - A first look (macOS) */, ); }; /* End PBXProject section */ @@ -356,7 +356,7 @@ GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = ""; INFOPLIST_KEY_CFBundleDisplayName = ShazamKit; - INFOPLIST_KEY_CFBundleExecutable = "Demo-ShazamKit"; + INFOPLIST_KEY_CFBundleExecutable = "ShazamKit---A-first-look"; INFOPLIST_KEY_CFBundleName = "Demo-ShazamKit"; INFOPLIST_KEY_CFBundleVersion = 1; INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; @@ -371,7 +371,7 @@ ); MARKETING_VERSION = 1.0; PRODUCT_BUNDLE_IDENTIFIER = "com.example.Demo-ShazamKit"; - PRODUCT_NAME = "Demo-ShazamKit"; + PRODUCT_NAME = "ShazamKit - A first look"; PROVISIONING_PROFILE_SPECIFIER = ""; SDKROOT = iphoneos; SWIFT_EMIT_LOC_STRINGS = YES; @@ -394,7 +394,7 @@ GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = ""; INFOPLIST_KEY_CFBundleDisplayName = ShazamKit; - INFOPLIST_KEY_CFBundleExecutable = "Demo-ShazamKit"; + INFOPLIST_KEY_CFBundleExecutable = "ShazamKit---A-first-look"; INFOPLIST_KEY_CFBundleName = "Demo-ShazamKit"; INFOPLIST_KEY_CFBundleVersion = 1; INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; @@ -409,7 +409,7 @@ ); MARKETING_VERSION = 1.0; PRODUCT_BUNDLE_IDENTIFIER = "com.example.Demo-ShazamKit"; - PRODUCT_NAME = "Demo-ShazamKit"; + PRODUCT_NAME = "ShazamKit - A first look"; PROVISIONING_PROFILE_SPECIFIER = ""; SDKROOT = iphoneos; SWIFT_EMIT_LOC_STRINGS = YES; @@ -433,6 +433,9 @@ ENABLE_PREVIEWS = YES; ENABLE_USER_SELECTED_FILES = readonly; GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_KEY_CFBundleExecutable = "ShazamKit - A first look"; + INFOPLIST_KEY_CFBundleName = "ShazamKit - A first look"; + INFOPLIST_KEY_CFBundleVersion = 1; INFOPLIST_KEY_NSHumanReadableCopyright = ""; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", @@ -441,7 +444,7 @@ MACOSX_DEPLOYMENT_TARGET = 12.0; MARKETING_VERSION = 1.0; PRODUCT_BUNDLE_IDENTIFIER = "com.example.Demo-ShazamKit"; - PRODUCT_NAME = "Demo-ShazamKit"; + PRODUCT_NAME = "ShazamKit - A first look"; SDKROOT = macosx; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_VERSION = 5.0; @@ -462,6 +465,9 @@ ENABLE_PREVIEWS = YES; ENABLE_USER_SELECTED_FILES = readonly; GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_KEY_CFBundleExecutable = "ShazamKit - A first look"; + INFOPLIST_KEY_CFBundleName = "ShazamKit - A first look"; + INFOPLIST_KEY_CFBundleVersion = 1; INFOPLIST_KEY_NSHumanReadableCopyright = ""; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", @@ -470,7 +476,7 @@ MACOSX_DEPLOYMENT_TARGET = 12.0; MARKETING_VERSION = 1.0; PRODUCT_BUNDLE_IDENTIFIER = "com.example.Demo-ShazamKit"; - PRODUCT_NAME = "Demo-ShazamKit"; + PRODUCT_NAME = "ShazamKit - A first look"; SDKROOT = macosx; SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_VERSION = 5.0; @@ -480,7 +486,7 @@ /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ - D0C0644C269707A600948EFE /* Build configuration list for PBXProject "Demo-ShazamKit" */ = { + D0C0644C269707A600948EFE /* Build configuration list for PBXProject "ShazamKit - A first look" */ = { isa = XCConfigurationList; buildConfigurations = ( D0C06462269707A800948EFE /* Debug */, @@ -489,7 +495,7 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; - D0C06464269707A800948EFE /* Build configuration list for PBXNativeTarget "Demo-ShazamKit (iOS)" */ = { + D0C06464269707A800948EFE /* Build configuration list for PBXNativeTarget "ShazamKit - A first look (iOS)" */ = { isa = XCConfigurationList; buildConfigurations = ( D0C06465269707A800948EFE /* Debug */, @@ -498,7 +504,7 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; - D0C06467269707A800948EFE /* Build configuration list for PBXNativeTarget "Demo-ShazamKit (macOS)" */ = { + D0C06467269707A800948EFE /* Build configuration list for PBXNativeTarget "ShazamKit - A first look (macOS)" */ = { isa = XCConfigurationList; buildConfigurations = ( D0C06468269707A800948EFE /* Debug */, diff --git a/Swift/ShazamKit - A first look/ShazamKit - A first look.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Swift/ShazamKit - A first look/ShazamKit - A first look.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..5809a4e --- /dev/null +++ b/Swift/ShazamKit - A first look/ShazamKit - A first look.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/Demo-ShazamKit.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/Swift/ShazamKit - A first look/ShazamKit - A first look.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist similarity index 100% rename from Demo-ShazamKit.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist rename to Swift/ShazamKit - A first look/ShazamKit - A first look.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist