XCode project for app, moved app project to folder

This commit is contained in:
Joe Mattiello
2023-03-01 22:07:19 -05:00
parent 365cadbb31
commit 4c9c5b1a56
371 changed files with 625 additions and 39 deletions

View File

@@ -0,0 +1,12 @@
//
// Collection-Extensions.swift
// swift-create-xcframework
//
// Created by Rob Amos on 9/5/20.
//
extension Collection {
var nonEmpty: Self? {
isEmpty ? nil : self
}
}

View File

@@ -0,0 +1,27 @@
//
// PackageDescription+Extensions.swift
// swift-create-xcframework
//
// Created by Rob Amos on 7/5/20.
//
import PackageModel
extension ProductType {
var isLibrary: Bool {
if case .library = self {
return true
}
return false
}
}
extension Manifest {
var libraryProductNames: [String] {
products
.compactMap { product in
guard product.type.isLibrary else { return nil }
return product.name
}
}
}