Swift UI Int в бинарный

let num = 22
let str = String(num, radix: 2)
print(str) // prints "10110"
Fancy Flatworm