From 465536784b7511a4b2732cba4718bd5484ece3c0 Mon Sep 17 00:00:00 2001 From: Benoit Deldicque Date: Thu, 8 Feb 2024 11:27:54 +0100 Subject: [PATCH] Add Visit Platform --- PostHog/PostHogContext.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PostHog/PostHogContext.swift b/PostHog/PostHogContext.swift index 1e502e609..44492cb58 100644 --- a/PostHog/PostHogContext.swift +++ b/PostHog/PostHogContext.swift @@ -48,6 +48,8 @@ class PostHogContext { properties["$os_name"] = device.systemName properties["$os_version"] = device.systemVersion + properties["Visit Platform"] = (device.userInterfaceIdiom == .pad) ? "Tablet iOS" : "Mobile iOS"; + var deviceType: String? switch device.userInterfaceIdiom { case UIUserInterfaceIdiom.phone: