You can scan a Snapchat code for your own profile or a friend's using the app's camera screen or your mobile device's camera roll.
You can use your iPhone to scan documents, QR codes, and other files using the Notes app and your camera.