Stream: show and tell

Topic: Swift example


view this post on Zulip Luke Boswell (May 03 2024 at 01:04):

I have been working on removing the host rebuilding from roc cli, and also refactoring the examples and tests so these continue working.

I've spent some time working on the Swift platform switching example and wanted to share. It took me a while to figure out the swift package manager and resolve some issues with linking and compatibility... but it works :tada:

Check this out :smiley:

swift-2.gif

Also, the "app" is tiny at 73K

$ ls -hl platform
total 56
-rw-r--r--  1 luke  staff    21K  3 May 10:56 macos-arm64.a
-rw-r--r--  1 luke  staff   154B  3 May 10:48 main.roc

$ ls -hl rocLovesSwift
-rwxr-xr-x  1 luke  staff    73K  3 May 10:56 rocLovesSwift

Hopefully this PR will be ok to merge soon and others can also use it.

view this post on Zulip Luke Boswell (May 03 2024 at 01:05):

Added in this commit if you want to the changes


Last updated: Jul 05 2025 at 12:14 UTC