Just to add to this - what Son has suggested will work perfectly after the page has loaded once, but on the initial page load if Optimizely has not yet created its cookie, Tealium can't pick the cookie value up. All subsequent page loads will, however, receive the cookie value. I don't know if the initial pageload is important to you, but it would be a good idea to keep this in mind.
Check out our new Swift integration library for iOS, macOS, tvOS and watchOS: https://github.com/Tealium/tealium-swift with updated
documentation https://community.tealiumiq.com/t5/Swift/tkb-p/swift.