.tabViewStyle with animated swiping of tabs - swiftui

Is it possible somehow to use the .tabViewStyle(.page) for animating swiping between tabs but with a look as the default style?
Basically I want the animated tab swiping but not the tiny centered tab icons that comes as a side effect of using .page instead of the default TabView.
The page feature seems more for swiping similar objects, not different tabs, but the swipe animation looks great, which is what I'm after.
Thanks!
Marcus

Related

Declare bottom zone in a SwiftUI navigation sidebar below a list

In the below screenshots (taken from the Apple Developer app), we can see that the Account button sticks to the bottom of the sidebar.
When the window is tall enough (left), the list doesn’t scroll, Account button’s background color has no difference. When the window is not tall enough (right), causing the list to scroll, Account button changes its background color to reveal the relationship.
The list's scroll position can not be probed. How can I declare the Account button in SwiftUI?
That app is a UIKit catalyst app and the sidebar uses scrollViewDidScroll which uses the contentSize to set a bottomButtonState which is passed into a child UIHostingController (so the account button can be SwiftUI) which I would assume switches between a clear or solid background.
We cant get the scroll info in SwiftUI however a possible workaround would be to add dummy 1 pixel high cell to the bottom of the list and using its onAppear to set a binding that is used in a bottom view to enable/disable a background colour and should achieve the same effect.

Swiper slider vertical split slider transition effect please

Hi there are a few pens which I will show to explain the transition.
Swiper link here https://swiperjs.com/get-started
I want the slide transition to be similar to this demo https://promo-theme.com/olvi/split-screen/ when you mouse scroll one side goes up and the other appears to go down.
I followed this https://codepen.io/dbridgman/pen/KZwGwL but it isn't quite right. It isn't smooth scrolling and in firefox gives a glitch when you add navigation.
I tried to add
transition: all 0.5s ease-in;
to each side but it still isn't quite right. Is there a better transition to use?
Thanks.

SwiftUI fullscreen horizontal swipe with dot indicator

Many apps have an intro view that has fullscreen pages with a dot indicator at the bottom. Sometimes it is used to gather same basic information, sometimes to introduce the app features.
How can I realize that?
I tried the ScrollView with a horizontal setting. The issue is to set up the content to fit the screen and have the edges snap on scroll. Second issue is the have a dotted indicator that highlights the current page.
you need to wrap UIPageControl with UIViewControllerRepresentable.

Layout with invisible button steals click events from underlying button in Qt5 form (QtCreator)

I have designed a form in QtCreator for Qt5 where I have a row of buttons without layout (Blueberry+, Peach, Lemon, Mango and Water in screenshot below) with a grid layout on top.
The grid layout has one button (Register Now), one label(HELLO JOHN) and two horizontal spacers inside:
In the code, the label and button in the layout are set to visible=false.
When I start the program and show the screen I only see the underlying row of buttons, but I can't click them. The layout seems to somehow steal the focus. I can verify this by moving the layout in the editor to see the boundary for where my clicks work following it.
Other than this there isn't much going on in the gui, so I am kind of stumped as to why a QGridLayout steals my clicks.
Any tips on how I can avoid this?
You should hide the QGridLayout itself and not the button and label.
You are done here if the button and label hides and shows togather.
if not. along with showing and hidding the grid. show and hide the label and button.
Does that seems to solve the problem?

Can you implement a stacked ActionBar on a tablet?

I have implemented an ActionBar with my own custom icons. I have added tabs as well but I want these to appear below the ActionBar. At the moment they are displaying in the ActionBar. According to the Android Developers guide:
http://developer.android.com/guide/topics/ui/actionbar.html
when the screen is wide enough the tabs appear in the action bar
alongside the action buttons (such as when on a tablet, shown in
figure 7), while when on a narrow screen they appear in a separate bar
(known as the "stacked action bar", shown in figure 8)
Is it possible to implement a stacked action bar permanently so that the tabs are constantly displayed below the ActionBar across all devices?
If you want the same effect as in that image, you can use tabs. Here is a tutorial on how to implement them.