Closed SpajicM closed 6 years ago
@SpajicM Could you please share a screenshot or relevant details for the issue?
@rushisangani On 5.0 it was ok, like a box with same width, height. Formsheet (not ok): Alert (working ok):
@rushisangani have found any solution for this ?
@d33pak-s1ngh didn't get time to resolve yet.
@SpajicM I could not be able to replicate this issue on my device or simulator. However, I've changed the frames or Formsheet menu. Could you please check if this happening in latest version 5.3 or not?
Still the same issue.
I'm using alert for time being but I prefer Formsheet since it allows dismiss by clicking outside the popup.
@SpajicM Can you please describe a bit more about this issue? Like Xcode version, iOS version and device or simulator specification?
You can also share the code if possible? There may be some issue with the ViewController from which the menu is shown.
ok I've looked into it a little bit deeper,
Issue was introduced at https://github.com/rushisangani/RSSelectionMenu/commit/07ad1c53c4a7b8580fd2e4afb5cf8739562b4553 and problem is it's going to else block even when in portrait, as can be seen from this screenshot
http://tinypic.com/r/2wnpj0g/9
iPhone 8 simulator iOS 12 (previously 11, same thing) Xcode 10 (previously 9, same thing)
It might be a simulator-only issue, can't test at real device at the moment.
@SpajicM Thanks. It would help me look further.
@SpajicM I have faced this issue on real ios device.
@SpajicM Can you please try to replace the code below and check if it works correctly, since I can not reproduce it on my device.
RSSelectionMenuController.swift Replace line number 183 with following.
UIApplication.shared.statusBarOrientation == .portrait
@rushisangani Works fine with that :)
I was using RSSelectionMenu with Formsheet style fine with version 5.0, after updating to 5.1.1 Formsheet height goes to the bottom of the screen.
New Actionsheet and Alert styles work ok.