{"id":13872135,"url":"https://github.com/sclukey/libui-swift","last_synced_at":"2026-01-28T10:12:36.864Z","repository":{"id":151556368,"uuid":"67473121","full_name":"sclukey/libui-swift","owner":"sclukey","description":"Swifty libui","archived":false,"fork":false,"pushed_at":"2017-06-19T03:56:44.000Z","size":39,"stargazers_count":31,"open_issues_count":1,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-06T23:51:37.548Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sclukey.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-09-06T04:24:43.000Z","updated_at":"2024-05-24T06:56:26.000Z","dependencies_parsed_at":"2023-06-01T19:15:45.520Z","dependency_job_id":null,"html_url":"https://github.com/sclukey/libui-swift","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sclukey%2Flibui-swift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sclukey%2Flibui-swift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sclukey%2Flibui-swift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sclukey%2Flibui-swift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sclukey","download_url":"https://codeload.github.com/sclukey/libui-swift/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226090030,"owners_count":17572114,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-05T23:00:34.872Z","updated_at":"2026-01-28T10:12:36.824Z","avatar_url":"https://github.com/sclukey.png","language":"Swift","funding_links":[],"categories":["Swift"],"sub_categories":[],"readme":"# libui-swift\n\nThis is an object oriented (and much more \"Swifty\") wrapper for [clibui](https://github.com/sclukey/clibui), which provides Swift bindings for [libui](https://github.com/andlabs/libui).\n\n## Swift Version\n\nThis package is tested with Swift 3, earlier versions of Swift will be ignored completely. Specifically, this is compatible with **Swift 3.0 Preview 6 and above**.\n\n## libui Version\n\nCurrently this package is built to support libui version **Alpha3.1**. I intend to update this for each release version, but between releases libui's HEAD may not be supported.\n\n| libui-swift Tag | libui Version |\n|-----------------|---------------|\n| 1.0.x           | Alpha3.1      |\n\n## Usage\n\nTo use this you need first to have a compiled version of libui. You can either [download the supported release](https://github.com/andlabs/libui/releases/tag/alpha3.1) or compile libui yourself. Note that if you compile yourself you should take care to use the same version that this package expects — the libui API is currently very unstable.\n\nThen, add the dependency to this module in your `Package.swift`:\n\n```swift\n.Package(url: \"https://github.com/sclukey/libui-swift.git\", majorVersion: 1)\n```\n\nFinally, when compiling a project that uses this package you need give Swift the location of the compiled library and the `ui.h` header file. Assuming you extracted the release package to `/path/to/libui`, you are on 64-bit Linux, and you want a static build, then you would need to use\n\n```\nswift build -Xswiftc -I/path/to/libui/src -Xlinker -L/path/to/libui/linux_amd64/static\n```\n\n## Examples\n\nThere are example programs available [here](https://github.com/sclukey/libui-swift-examples).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsclukey%2Flibui-swift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsclukey%2Flibui-swift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsclukey%2Flibui-swift/lists"}