iOS in-app purchase introductory free trial with partial content access

I am planning to restrict users to access the full feature while they are in IAP trial mode. If the user is in trial mode, I will show only 1 or 2 items and the rest will be locked.
Is it allowed by Apple?
If I allow the user to access everything then the user will not buy the subscription and may cancel IAP while the trial is ongoing.
iOS in-app purchase introductory free trial with partial content access
 
 
Q