Skip to content

Commit 93f2674

Browse files
authored
Merge pull request #22 from korovyev/mpproduct_remaining_attributes
Add remaining properties to MPProduct
2 parents 87394f2 + 86328d3 commit 93f2674

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Simcoe/mParticle/MPProduct+Simcoe.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,14 @@ extension MPProduct {
4747
if let position = properties[MPProductKeys.Position.rawValue] as? UInt {
4848
self.position = position
4949
}
50+
51+
let remaining = MPProductKeys.remainingProperties(properties)
52+
53+
for (key, value) in remaining {
54+
if let value = value as? String {
55+
self[key] = value
56+
}
57+
}
5058
}
5159

5260
}

0 commit comments

Comments
 (0)