Skip to content

Comments

fix: expose getUserProperties() as a public function#85

Merged
kyeh-amp merged 2 commits intomainfrom
expose-getProperties
Feb 13, 2026
Merged

fix: expose getUserProperties() as a public function#85
kyeh-amp merged 2 commits intomainfrom
expose-getProperties

Conversation

@kyeh-amp
Copy link
Collaborator

Summary

Expose ExperimentUser.getUserProperties() as a public function to provide read access for non-String type userProperties.

Current state allows for the writing of non-strings and there's even tests for this, but there's no way to read those properties back out. Reading userProperties from the attribute is deprecated with a message to use getUserProperties() in favor of the attribute:
https://github.com/amplitude/experiment-ios-client/blob/main/Sources/Experiment/ExperimentUser.swift#L26

Checklist

  • Does your PR title have the correct title format?
  • Does your PR have a breaking change?: no

…nctionality of non-String type userProperties
@kyeh-amp kyeh-amp requested a review from a team February 11, 2026 22:25
@kyeh-amp kyeh-amp force-pushed the expose-getProperties branch from 7444ea0 to 616dc53 Compare February 13, 2026 18:18
@kyeh-amp kyeh-amp merged commit b99db4d into main Feb 13, 2026
3 of 5 checks passed
@kyeh-amp kyeh-amp deleted the expose-getProperties branch February 13, 2026 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants