Swiftify content function, use switch for ifs when possible
Swiftify content function, use switch for ifs when possible

Signed-off-by: ismailgulek <ba88958765dee0a4c2548e2371e24f8243ffa77b@gmail.com>

vector-im/vector-ios,vector-im/riot-ios,vector-im/vector-ios,vector-im/riot-ios,vector-im/riot-ios,vector-im/riot-ios,vector-im/riot-ios,vector-im/vector-ios,vector-im/riot-ios