swift 의 경우는 별다른 환경 설정이 없습니다. 그냥 Console Application 작성하여 빌드하여 확인하고 있습니다.
맥 스크린 캡춰할 때, 여백 없이 캡춰하기
콘솔에서 다음 명령으로 기본 환경설정을 바꿔줍니다.
defaults write com.apple.screencapture disable-shadow -bool true ;
killall SystemUIServer
이후 다시 한 번 윈도우 영역을 캡쳐해 보시면 여백없이 깔끔하게 캡춰된 것을 확인 할 수 있습니다.