See this wwdc video: https://developer.apple.com/videos/play/wwdc2017/716/
You may have to apply and Apple may not approve you, but it's worth a shot and will do what you want.
Topic:
UI Frameworks
SubTopic:
UIKit
Tags: