Closed trinhson97 closed 3 years ago
Here is the code used:
let success = MessageView.viewFromNib(layout: .cardView)
success.configureTheme(.success)
success.configureDropShadow()
success.configureContent(title: "Success", body: "Something good happened!")
success.button?.isHidden = false
var successConfig = SwiftMessages.defaultConfig
successConfig.presentationStyle = .top
successConfig.presentationContext = .window(windowLevel: UIWindow.Level.normal)
SwiftMessages.show(config: successConfig, view: success)
plz help me
What do you want it to look like?
I do want it to show as follows on screen ngang iphone xs max / iphone 11pro max :
can you help me
@wtmoose Let me clarify @trinhson97 question.
He's facing an issue in landscape mode
with CardView
on iPhone12 Pro Max, 11 Pro Max, Xs Max.
The CornerRoundingView
frame should be updated when switching from Portrait to Landscape. In his case, the size still the same in both Portrait and Landscape mode.
(It works with other iPhone type except Pro Max
version)
For @trinhson97, please create a Pull Request if you do know how to fix this issue.
i have the same problem.
@canhth thank you.
This is behaving as designed. The Max phones are regular size class in landscape. SwiftMessages uses a different layout in regular size class because developers didn't want the messages to span across the entire screen on iPad. The regular size class layout uses the view's intrinsic width with a maximum width of 500pt @ 950 priority.
My suggestion is that folks stick with the current behavior. If not, my thoughts are:
messageView.backgroundView
to preserve a desired width.I am in the middle of a major layout system revamp (check out the head of master
) that will gives app developers straight forward and powerful control of the message layout, so I'm not very interested in taking on (2) as a tangent.
I'm open to suggestions.
@wtmoose thank you.
Can you help me demo?
@trinhson97 I don't understand what you're asking for
No reply...closing
layout Margin Additions displayed incorrectly on iphone12 pro max , Iphone11pro max and iphone Xs max.