Same here, still experiencing this issue.
Post
Replies
Boosts
Views
Activity
You should try $textModel.name.
Solved by editing supportedInterfaceOrientations in Package.swift
You can open 'Package.swift' and under supportedInterfaceOrientations which should be
supportedInterfaceOrientations: [
.portrait,
.landscapeRight,
.landscapeLeft,
.portraitUpsideDown(.when(deviceFamilies: [.pad]))
]
remove .portrait' and '.portraitUpsideDown(.when(deviceFamilies: [.pad])), and therefore the final code should be
supportedInterfaceOrientations: [
.landscapeRight,
.landscapeLeft,
]
Hope that helped!
However, a switch case still did not solve the issue
Right sorry, there was a mistake in the code I wrote in my original post. It was '==' instead of '=' in my own code. Thanks for pointing that out.