An open API service indexing awesome lists of open source software.

https://github.com/0xleif/swiftak

AppKit code that is fun to write. Based off https://github.com/0xLeif/SwiftUIKit
https://github.com/0xleif/swiftak

appkit cocoa macos swift

Last synced: 2 months ago
JSON representation

AppKit code that is fun to write. Based off https://github.com/0xLeif/SwiftUIKit

Awesome Lists containing this project

README

          

# SwiftAK
AppKit code that is fun to write.

## Example Code

```swift
import Cocoa
import SwiftAK

class ViewController: NSViewController {

override func viewDidLoad() {
super.viewDidLoad()

view.center {
NSView().vstack {
[

NSView(backgroundColor: .red)
.frame(height: 100, width: 100)
.padding()
.background(color: .yellow),

NSText()
.configure {
$0.string = "Hello World!"
}
.background(color: .blue)
.frame(height: 60, width: 100)
]
}
}
}
}
```

## Example

![SwiftAK Example](https://i.imgur.com/h8Gt8lq.png)