Tag: Swift

  • Video in SwiftUI: macOS

    One of the great features of SwiftUI is that the same code can run on iOS and macOS. After all, you are just declaring what kind of views you want; the system will translate those to the adequate component according to the system. So how can we make our Video view compatible with macOS?

  • Logging in Swift

    Here is my poor man version of logging for SWIFT This method besides printing your message it shows the file name, the line and the function method where the log was made. The file, function and line numbers are extracted using literal expressions. This makes it easier to find where the log message come from […]