2026-11-13 13:25:54 +03:00
2026-11-13 13:25:54 +03:00
cui
2026-11-13 12:47:38 +03:00
fu
2026-11-13 13:24:23 +03:00
2026-11-05 19:43:33 +00:00
2026-11-13 12:49:17 +03:00

Prerequisites

Android

  • Install Android Studio Quail 3 (2026.1.3)
  • Install NDK

iOS

  • Install Xcode 26

  • Install XcodeGen

    brew install xcodegen

  • Get ghera's raylib-ios-xcframeworks

    Unpack and place it alongside the project

Linux

  • Install Ubuntu 24.04

  • Install Swiftly + Swift (installed by Swiftly)

  • Install Swift dependencies (proposed by Swiftly after Swift installation)

    apt-get -y install binutils git gnupg2 libcurl4-openssl-dev libgcc-13-dev libpython3-dev libstdc++-13-dev libxml2-dev libncurses-dev libz3-dev pkg-config zlib1g-dev

  • Install CrossSwiftUI dependency

    apt-get -y install libgtk-4-dev

  • Install Raylib

    add-apt-repository ppa:texus/raylib
    apt update
    apt install libraylib6-dev
    

macOS

  • Install Xcode 26

  • Install Raylib 6

    brew install raylib

Windows

Developer mode

  • Install Windows 11

    Use x64 Windows if you want to target both Intel and ARM

  • Install Visual Studio 2022 and Swift toolchain

  • Install App Runtime

    winget install --id Microsoft.WindowsAppRuntime.1.5 -e --source winget

  • Enable developer mode

    Settings -> System -> Advanced -> Developer Mode: On (see the screenshot above)

  • Install Git Bash

    winget install --id Git.Git -e --source winget

    While in Git Bash installation wizard, select defaults

  • Inside Git Bash: configure Git to use actual symlinks

    git config --global core.symlinks true

  • Inside GitBash: find the location of swift.exe

    $ find /c -name swift.exe 2>/dev/null
    /c/Users/mk/AppData/Local/Programs/Swift/Toolchains/6.4.2+Asserts/usr/bin/swift.exe
    
  • Inside Git Bash: to ~/.bash_profile add Swift location (without swift.exe) to PATH

    export PATH="$PATH:/c/Users/mk/AppData/Local/Programs/Swift/Toolchains/6.4.2+Asserts/usr/bin"

  • Restart Git Bash

  • Make sure Swift compiler is working

    $ swift --version
    Swift version 6.4.2 (swift-6.4.2-RELEASE)
    Target: aarch64-unknown-windows-msvc
    Build config: +assertions
    
  • Download Raylib source code zip

  • Unpack Raylib zip alongside the project dir

  • Rename unpacked Raylib dir to raylib

  • Download SkiaSharp package

  • Unpack SkiaSharp package (it's just a zip) alongside the project dir

  • Rename unpacked SkiaSharp dir to skiasharp

  • Download ANGLE source code zip

  • Unpack ANGLE zip alongside the project dir

  • Rename unpacked ANGLE dir to angle

Components

Component Android iOS Linux macOS Windows Description Image
craylib X X √ √ X CRaylib exposes installed Raylib headers and library linkage to Swift N/A
cui X √ √ √ √ Custom UI contains functions to make UI syntax look identical across platforms N/A
glbri X √ X X √ OpenGL bridge manages graphics context and surface through EGL for select platforms N/A
hcm ? ? ? ? ? Hello color memory provides memory game logic testing Linux
hp √ √ √ √ √ Hello platform is a simple UI to validate platform support Android
hrb √ √ √ √ √ Hello Raylib is a simple Raylib rendering to validate platform support macOS
hst √ √ √ √ √ Hello selection validates mouse clicks and taps into Raylib scene iOS
raybri √ √ √ √ √ Raylib bridge is a collection of Raylib calls grouped for convenience N/A
S
Description
OGS Mahjong 2
Readme Zlib
7.4 MiB
0 Stars 1 Watchers 0 Forks
Languages
Swift 66.2%
Kotlin 25.3%
C 6.1%
Shell 2.2%
CMake 0.2%