Latest Albums\Videos in iCloud not reflected in local Photos when fetched from code\program

Latest Albums\Videos in iCloud not available from code until I open the Photos App. Figured out that when I open the PHCollection picker and close it (even in a fraction of second), it triggers the iCloud sync on local Photos albums and I am able to get latest content. Is there way to trigger the iCloud sync with Photos albums through program or at least a workaround like open\close the PHCollection picker in background?