Updated for cocoapods
Fixed layer problem