Validation request cancellation? - validation

I'm getting this message in the console window when running a SwiftUI iOS 15 app on an iPad simulator in Xcode 13.2 when I change the orientation of the iPad. This reconfigures a List and a plot to be a vertical stack or a horizontal stack depending on the geometry reader width and height of the view.
2022-02-18 15:31:51.214810-0800 Mode Analyzer-1D[61895:2062036] [Assert] Somehow we ended up in _validateCurrentFocusedItemForAppearingEnvironment even though there is no focused item. We should have cancelled the validation request in that case.
How do "we" cancel the validation request? Let alone what is a validation request?
Thanks,
Joe

Related

Search Bar and button placed improperly in landscape view despite constraints

I'm trying to add constraints to my button and search bar elements and they work fine in Portrait mode on multiple platforms including ipad, but as soon as I change to landscape view everything brakes and constraints showing conflicts on Iphone's only. Interesting is the fact that Landscape mode on Ipads is completely fine, and works as I imagine it to. I'm new and learning so might have overlooked something, does anyone have any ideas why this weird behavior?
Project has no fancy structure, just pulled up a default single page template on visual studio and dropped a button and SearchBar.
Adding a gif below with the storyboard I'm working on:
Cause:
Let's take iPhone 8 as an example:
The size of iPhone 8 is 375 × 667. In your case, in Portrait mode, you set your button vertical spacing to top equals 200. And you set your button vertical spacing to bottom equals 200. It's ok because the is still enough space for button(button's height is 667-200-200 = 267).
While in Landscape mode, you will found there is no enough space for button.(375-200-200 = -25). So you get conflicts.
Landscape mode on Ipads is completely fine, and works as I imagine it
to.
This is probably caused by the height of Ipads is enough to support the constraints as we know iPad is bigger than iPhone.
Solution:
Pay attention to the cause I mentioned above. You can also specify the size of button.

Gluon View layout displaced after taking a picture

When my app is resumed after taking a picture, the layout of the view is displaced:
This effect only occurs when an input node, e.g. TextField was focused and the layout had to be adjusted in order to not make the keyboard cover the input node. Even more interessting, I couldn't reproduce the issue while selecting a picture.
The error occurred when I updated Android 6.0 to 7.0
Edit:
Every now and then, there is a similar error, when the keyboard is hidden (see link):

Aritchie text truncated for Toast messages on Android

I have installed Aritchie userdialogs version 5 and I'm using Xamarin.Forms Version 2.2. When I use UserDialogs.Instance.ErrorToast on Android, if the text is longer than screen width, it cut.
This is a problem cause the user might not see important part of a message.
(Same toast message on iOS for example not truncated and it takes the size of the content automatically).
How can I increase the height of this rectangle, or set an autosize if exist ?
When your Android app is running with a AppCompatActivity based Activity (which it seems that your is since it is using Material Design), Acr UserDialogs is creating a SnackBar for displaying the Toast, and by design a Google/Android SnackBar is supposed to be a short message.
https://www.google.com/design/spec/components/snackbars-toasts.html
Snackbars provide lightweight feedback about an operation by showing a brief message at the bottom of the screen
As such there is not built-in method for auto-sizing or multi-line wrapping of text. There are other SO questions related to this and their answers all point to the thing, you would need to modify the Android-based view that is contained within the Snackbar fragment when it is created:
TextView tv = (TextView) view.FindViewById(Resource.Id.SnackbarText);
// change the font size, view size, content wrap settings, etc...
If these are important messages that the user needs to dismiss, perhaps using a popup dialog would work in your design.

App display does not fill iPad screen

I'm converting an app that I made for iPhone to be used on iPad. Using constraints on the Xcode 6 storyboard is killing me right now.
With my rep score I can't post an image of what I'm getting, but basically even when I set the constraints and the placement of the object (a UIView) on a storyboard sized for iPad, all the objects on the viewController fill only the top/left area of the screen.
What's the best way to handle this?
-- when you change size of view, other view will be auto change to {0,0,0,0}, isn't ?
but it doesn't change in the right panel.
it is your storeboard files some settings have some wrong.
Demo test link http://www.cocoachina.com/bbs/job.php?action=download&aid=80409
Check for those points:
hope this can help you.

Master view full screen

Occasionally in my iPad Master/Detail app the Master View slides into view at a full-screen width rather than its usual 320p width. This happens under ios 5 and 6 on iPads 1 and 2. When it happens the view functions normally and the Master view continually reappears at full screen width until the app is restarted. Table view cells are also stretched to full-screen and so they look strange. I have not been able to characterize this except that it may happen only after I have received a memory warning.
There is no place in my code where I try to change the width (or anything else) of the Master view. Has this been seen or reported? I've found no mention of it in my searches. Thx
Do you use Interface Builder to create the views? If so try modifying "Autoresize subviews" attribute in the "Attributes Inspector" of the view

Resources