Flat lib for iOS