Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

swift ui int to binary

let num = 22
let str = String(num, radix: 2)
print(str) // prints "10110"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #swift #ui #int #binary
ADD COMMENT
Topic
Name
5+3 =