An extremely light Heap MacOS Framework for sending events and tracking users.
- Add
github "marvelapp/Heap-MacOS" "master"
to your Cartfile. - Run carthage update.
- Go to your Xcode project's "General" settings. Drag
marvelapp/Heap-MacOS.framework
fromCarthage/Build/macOS
to the "Embedded Binaries" section. Make sure “Copy items if needed” is selected and click Finish.
import Heap
Heap.shared.setup(appId: "YOUR APP ID", identity: "[email protected]")
var customAttributes: [String: Any] {
"Name": "Maxime De Greve"
}
Heap.shared.events.track(event: "Sign Up Click", properties: customAttributes)
Soon