Skip to content

Commit bdd14b7

Browse files
committed
update
1 parent b93da3b commit bdd14b7

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ let package = Package(
77
name: "coreml-stable-diffusion-swift",
88
platforms: [
99
.macOS(.v13),
10-
.iOS(.v16),
10+
.iOS("16.2"), // Updated to support iOS 16.2
1111
],
1212
products: [
1313
// Products define the executables and libraries a package produces, and make them visible to other packages.
@@ -17,7 +17,7 @@ let package = Package(
1717
],
1818
dependencies: [
1919
// Dependencies declare other packages that this package depends on.
20-
.package(url: "https://github.com/apple/ml-stable-diffusion.git", .exactItem("0.3.0")),
20+
.package(url: "https://github.com/apple/ml-stable-diffusion.git", .exactItem("1.1.1")),
2121
.package(url: "https://github.com/JohnSundell/Files.git",
2222
from: "4.2.0")
2323
],

Sources/coreml-stable-diffusion-swift/helper/HelperFile.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public func initFolder(name : String) throws{
5656
#elseif os(iOS)
5757
/// Get list of models from the models directory
5858
/// - Returns: List of model
59-
@available(iOS 16.0, *)
59+
@available(iOS 16.2, *)
6060
internal func listOfModels() async -> [GenerativeModel] {
6161
guard let docs = Folder.documents, let folder = try? docs.subfolder(at: "models") else {
6262
return []
@@ -68,7 +68,7 @@ internal func listOfModels() async -> [GenerativeModel] {
6868
}
6969

7070
/// Show the models directory in the Files app
71-
@available(iOS 16.0, *)
71+
@available(iOS 16.2, *)
7272
public func showInFilesApp() {
7373
guard let url = Folder.documents?.url else { return }
7474

@@ -79,7 +79,7 @@ public func showInFilesApp() {
7979
/// Create a folder
8080
/// - Parameter name: Name of the folder to create
8181
/// - Throws: Could not create a folder
82-
@available(iOS 16.0, *)
82+
@available(iOS 16.2, *)
8383
public func initFolder(name: String) throws {
8484
if let docs = Folder.documents {
8585
if docs.containsSubfolder(named: name) == false {

Sources/coreml-stable-diffusion-swift/helper/HelperPipeline.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public func getDiffusionPipeline(
2929
config.computeUnits = computeUnits
3030

3131
return try .init(
32-
resourcesAt: url,
32+
resourcesAt: url, controlNet: [],
3333
configuration : config,
3434
disableSafety: disableSafety,
3535
reduceMemory : reduceMemory

Sources/coreml-stable-diffusion-swift/model/GenerativeModel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import Foundation
99

1010
/// Model profile description
11-
@available(iOS 16.0, macOS 13.1, *)
11+
@available(iOS 16.2, macOS 13.1, *)
1212
public struct GenerativeModel: Hashable, Identifiable{
1313

1414
// MARK: - Life circle

0 commit comments

Comments
 (0)