Using Swift programming language, write a function that accepts a 2x2 matrix as input and calculates its determinant. Ensure that the program correctly handles any possible input values and output the result in a clear and easily readable format. The code should be well-organized and properly commented to ensure ease of understanding for future maintenance.
This prompt doesn't seem malicious.