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
- Host: GitHub
- URL: https://github.com/0xleif/swiftak
- Owner: 0xLeif
- License: mit
- Created: 2020-10-28T03:08:33.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-10-28T04:35:46.000Z (over 5 years ago)
- Last Synced: 2025-02-10T23:41:46.601Z (over 1 year ago)
- Topics: appkit, cocoa, macos, swift
- Language: Swift
- Homepage:
- Size: 7.81 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
