Set up macOS example
This commit is contained in:
parent
3310cb4aa4
commit
edbd67a453
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"object": {
|
||||
"pins": [
|
||||
|
||||
]
|
||||
},
|
||||
"version": 1
|
||||
}
|
|
@ -12,7 +12,7 @@ let package = Package(
|
|||
targets: ["ImagesExample-macOS"]),
|
||||
],
|
||||
dependencies: [
|
||||
.package(url: "../../PlaceholderKit", from: "0.0.3")
|
||||
.package(path: "../../.")
|
||||
],
|
||||
targets: [
|
||||
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
|
||||
|
@ -22,6 +22,6 @@ let package = Package(
|
|||
dependencies: ["PlaceholderKit"]),
|
||||
.testTarget(
|
||||
name: "ImagesExample-macOSTests",
|
||||
dependencies: ["ImagesExample-macOS", "PlaceholderKit"]),
|
||||
dependencies: ["ImagesExample-macOS"]),
|
||||
]
|
||||
)
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
struct ImagesExample_macOS {
|
||||
var text = "Hello, World!"
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
//
|
||||
// main.swift
|
||||
// ImagesExample-macOS
|
||||
//
|
||||
// Created by Simon Lee on 12/26/18.
|
||||
//
|
||||
import PlaceholderKit
|
||||
import AppKit
|
||||
|
||||
let image = PlaceholderBuilder().coloredBackground(color: .red, size: CGSize(width: 100, height: 100))
|
||||
|
||||
print(image)
|
Loading…
Reference in New Issue