Closed nomadminded closed 4 months ago
Is your feature request related to a problem? Please describe:
At the moment on iOS the background image passed in config is centered:
imageView.contentMode = .center
Describe the solution you'd like:
In our case we need to fit the image provided to the view controller, otherwise it is too zoomed in:
imageView.contentMode = .scaleAspectFit
It would be very useful to have an option that can be passed in config, something like
PrivacyScreen: { enable: true, imageName: "Splash", contentMode: "[fit/center]" }
Describe alternatives you've considered:
The only alternative we have right now is to fork out and customize the plugin, losing the option of keeping up with the updates.
Yes, that's a missing feature. Feel free to create a PR.
HI @robingenz, PR created.
Is your feature request related to a problem? Please describe:
At the moment on iOS the background image passed in config is centered:
imageView.contentMode = .center
Describe the solution you'd like:
In our case we need to fit the image provided to the view controller, otherwise it is too zoomed in:
imageView.contentMode = .scaleAspectFit
It would be very useful to have an option that can be passed in config, something like
PrivacyScreen: { enable: true, imageName: "Splash", contentMode: "[fit/center]" }
Describe alternatives you've considered:
The only alternative we have right now is to fork out and customize the plugin, losing the option of keeping up with the updates.