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 ...
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...
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...
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:...
Cote asked 3/11, 2020 at 1:13
3
React Native Tab View : displaying empty screen when Tabview element is wrapped / nested within View
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...
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...
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 ...
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...
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...
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...
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...
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...
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...
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...
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...
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
1 Next >
© 2022 - 2024 — McMap. All rights reserved.