tabview Questions

4

Solved

Is there a simple way to get a more customizable tab bar view using SwiftUI? I'm mainly asking from the perspective of macOS (though one that works on any system would be ideal), because the macOS ...
Arango asked 13/3, 2020 at 16:28

3

Solved

I'm creating a vertical paging view via TabView following this Everything is perfect except the strange right margin as highlighted in pic below. Here is the code I use. Appreciate it if anyone cou...
Endothecium asked 25/2, 2022 at 13:27

7

Solved

I have a TabView thats using the swiftUI 2.0 PageTabViewStyle. Is there any way to disable the swipe to change pages? I have a search bar in my first tab view, but if a user is typing, I don't want...
Pitta asked 30/7, 2020 at 7:15

4

Solved

I have set up a TabView in my application, so that I can swipe horizontally between multiple pages, but I also have an unwanted vertical scroll that may appear, with a bounce effect so. How can I d...
Silvester asked 27/9, 2020 at 17:35

4

Solved

I would like to run a function each time a tab is tapped. On the code below (by using onTapGesture) when I tap on a new tab, myFunction is called, but the tabview is not changed. struct DetailView:...

3

I am using 'react-native-tab-view' library in my code. Link here: npm / github. Here is a basic example code in snack- that can run on Web. Now the issue is- if I want to display a Header text abov...
Kansu asked 3/12, 2021 at 11:28

7

As you can see from the screenshot, the 'Language' tab appears twice. I've got the following code for HostingTabBar which is called on app startup: struct HostingTabBar: View { private enum Ta...
Photoengrave asked 9/8, 2021 at 12:3

3

How Can I set an item to disabled (not clickable) but visible in my tabView ? TabView(selection: $selectedTab) { Settings() .tabItem { Image(systemName: "gearshape.fill") Text("S...
Studbook asked 7/11, 2020 at 11:21

2

Solved

I came across a weird Issue in SwiftUI. I created a simple View that only holds a Button and a TabView that uses the PageViewStyle. It seems that the TabView does not update it's content correctly ...
Milling asked 20/8, 2020 at 6:49

3

I'm trying to make a bidirectional TabView (with .tabViewStyle(PageTabViewStyle(indexDisplayMode: .never))) whose datasource will change over time. Below is the code that describes what is expected...
Anabatic asked 26/12, 2020 at 14:56

6

Solved

It is my app.component.ts: import { Component } from '@angular/core'; @Component({ templateUrl: 'app/app.component.html', selector: 'my-app' }) export class AppComponent { } And this is my a...
Commutative asked 15/12, 2016 at 19:8

1

Setting a navigationTitle is not working anymore on iOS 16 when having UINavigationController inside a TabView. Run the code with iOS 14/15, no issue there. If Tabview is commented, navigation titl...
Miscreated asked 24/9, 2022 at 19:24

3

Solved

How do I make my SwiftUI TabView with a PageTabViewStyle adjust its height to the height of the content? I have a SwiftUI view like follows: struct TabViewDynamicHeight: View { var body: some View...
Brendonbrenk asked 26/5, 2021 at 9:11

1

I am using Tab View in my SwiftUI app. I want the changing of page disabled, while swiping left or right. And I had achieved it from this. This works fine but the issue I am facing is I have a butt...
Expostulate asked 13/7, 2022 at 7:29

2

Solved

I am trying to implement the behavior in a TabView when the user taps the same tab multiple times, such as in the iOS AppStore app. First tap: switch to that view, second tap: pop to root, third ta...
Niece asked 10/1, 2023 at 22:42

1

I am working with SwiftUI 2 and using a TabView with PageTabViewStyle. Now, I am searching for a way to "tease" the pages adjacent to the current page like so: Is it possible to achieve ...
Carranza asked 25/4, 2021 at 12:32

2

Does anyone know how I can create a bottom sheet similar to the one in the Diary Queen app. I have tried a few times but every thing I've tried has made the bottom sheet appear above the bottom tab...
Urita asked 20/12, 2022 at 1:12

3

Solved

I've changed my code completely. But active index is still showing problems. Sometimes it gets called and sometimes it doesn't. What's wrong with the following xhtml code? <?xml version='1.0' e...
Gonfalon asked 2/4, 2012 at 6:56

2

Solved

I would like to run some code when one of my tabs in tabview is selected. Hypothetical: I want to create an app with the intentions to: A) Use a tabview and B) seriously confuse the user. To achiev...
Goglet asked 22/9, 2020 at 23:4

4

Solved

I am trying to change the tab bar color in a view controller in XCode using swift. I have a hex that I matched up to an RGB value and I am trying to set that in this code. (Which does not work) le...
Countersink asked 27/10, 2014 at 19:56

0

I have a TabView and each Tab has it's own NavigationPath which I am handling inside an ObservableObject. @MainActor final class Router: ObservableObject { @Published var homeNavigationPath = Navi...
Absquatulate asked 14/11, 2022 at 14:58

4

I am calling API when tab item is appeared if there is any changes. Why onAppear called after called onDisappear? Here is the simple example : struct ContentView: View { var body: some View { Tab...
Cohere asked 4/8, 2020 at 17:52

3

Solved

I have a TabView in SwiftUI and want the second tab to be the default, when starting the app. I haven't found any documentation to provide this behavior, but it should be possible. Most of the ap...
Brockie asked 5/9, 2019 at 9:30

1

Using Swift 5.3.2, Xcode 12.4, iOS 14.4, I am trying to make a simple Page-TabView in SwiftUI (see below code-excerpt). When rotating to Landscape or back to Portrait, there is a problem (see video...
Mandolin asked 24/2, 2021 at 11:29

1

Solved

I am using a tab view in my SwiftUI app. I want to disable its swipe to left and write to move to other pages. I checked this answer and also checked this one, but none of them works. They are usin...
Skyla asked 23/6, 2022 at 8:55

© 2022 - 2024 — McMap. All rights reserved.