Added realm encryption examples for Swift/ObjC

Applied the change for both Swift/ObjC versions of the example. /cc @astigsen @alazier.