navigationview Questions
2
The problem occurs when I put VideoPlayer view inside NavigationView's parent view or child view. In this example the child view will show navigation bar:
struct ParentView: View {
var body: some ...
Appassionato asked 1/4, 2021 at 1:33
1
Solved
NavigationLink(destination: DetailView()) {
Image(systemName: "cloud.heavyrain")
.foregroundColor(Color.accentColor)
.font(.system(size: 66, weight: .regular))
}
.buttonStyle(PlainB...
Dualpurpose asked 1/2, 2022 at 22:24
6
Solved
I'd like to build a navigation drawer where each item has a different selection color (the icon tint and text color) as the google play store has:
I'm not sure how they've solved this, I think t...
Literature asked 21/6, 2015 at 18:21
2
I'm trying to make the icons in a bottom navigation view lower. For example, right now they are pressed against the top line like this.
How would I make the icon lower? I want them to be center...
Lita asked 1/7, 2017 at 2:1
2
Solved
I'm just picking up SwiftUI after a long break but I don't understand why I can't place a Navigation View within a Tab View.
I want my Navigation View to be a .tabItem so the view appears as part o...
Kid asked 23/4, 2021 at 22:3
2
according to recent Ian Lake post
And if you haven't looked at NavigationView recently, it actually got
quite an update in version 23.1.0 [1] with the addition of
app:actionLayout support for ...
Arrant asked 13/11, 2015 at 9:23
1
So I have a TabView where each of the tabs is embedded in a NavigationView.
On first appear of each tab I get the following lifecycle calls onAppear(), onDisappear(), onAppear(). So it looks like o...
Distinction asked 11/5, 2021 at 9:16
4
I am new to Swift and I'm trying to create a simple screen with the NavigationView in SwiftUI. For some reason it is adding extra space at the bottom when I wrap anything inside of the NavigationVi...
Apt asked 26/4, 2020 at 14:58
2
Solved
Is it possible to make the navigation title of SwiftUI editable?
Unfortunately the navigationTitle modifier only accepts Text views and not TextField views.
I want to do this instead of just using ...
Sneaking asked 9/5, 2021 at 18:36
2
Solved
I have created an ObservableObject in a View.
@ObservedObject var selectionModel = FilterSelectionModel()
I put a breakpoint inside the FilterSelectionModel's init function and it is called mult...
Khmer asked 30/12, 2019 at 15:48
1
Solved
I have got my ContentView, which is a TabView, with View1 and View2 as tabs:
struct ContentView: View {
@State private var selection: Tab = .View1
enum Tab {
case View1
case View2
}
var bod...
Bridgeport asked 1/2, 2021 at 16:44
14
Solved
Google introduced the NavigationView in the Design Support Library version 22.2.0 with which you can create a drawer very easily using a menu resource.
How can I create a simple divider line betwe...
Meister asked 3/6, 2015 at 16:6
4
Learning to SwiftUI. Trying to navigate to a new view from navigation bar buttton clicked.
The sample code below:
var body: some View {
NavigationView {
List(0...< 5) { item in
NavigationLin...
Centrepiece asked 14/7, 2019 at 2:59
2
Solved
How can I change the NavigationView Pane background??
I'm trying this way:
<NavigationView.Background>
<LinearGradientBrush EndPoint="0.5,0" StartPoint="0.5,1">
<GradientStop Co...
Chirlin asked 22/2, 2018 at 13:6
5
Solved
The question is as simple as in the title. I am trying to put a Picker which has the style of SegmentedPickerStyle to NavigationBar in SwiftUI. It is just like the native Phone application's histor...
Randa asked 2/2, 2020 at 23:45
1
Solved
Since iOS 14 i have a strange behavior where i have a padding around a list in a NavigationView as soon as i add navigationBarItems...
My code :
import SwiftUI
struct TestList: View {
var b...
Enchiridion asked 2/10, 2020 at 17:1
2
Solved
I'm developing an android app using design library and appCompat library. I'm facing some issues when tried to listen to long click on a menu item.
My app has a NavigationView as a side menu, insid...
Klotz asked 30/9, 2015 at 12:21
5
Solved
The new NavigationView in the new Design Support Library works really great.
They use "menu-items" to display the options.
But how can I display a counter to the right of the menu item?
Like in ...
Kier asked 31/5, 2015 at 17:51
0
I am using SwiftUI in a project that requires a model with a 'one to many to many' entity structure. I use a navigation view at the parent level with navigation links at parent and child levels.
Th...
Bedabble asked 27/9, 2020 at 10:1
2
I am having a hard time creating in SwiftUI a pretty common use case in UIKit.
Here is the scenario. Let's suppose we want to create a master/detail app in which the user can select an item from a...
Jackqueline asked 29/6, 2019 at 21:50
2
Solved
I have NavigationView with multiple Groups which is based on some condition I need to hide & show the group. How I can achieve this.
My Sample NavigationView menu
<?xml version="1.0" enco...
Hescock asked 13/5, 2016 at 2:26
0
I have a MainView which is a Navigation View and it presents a View through NavigationLink i.e. SubView here. In SubView, I want to present a view on top of the subview on a button toggle while hid...
Auden asked 14/8, 2020 at 6:36
2
Problem : NavigationView not show full text of menu item, also not truncate text.
This item I see correctly - two words "Small title":
<item
android:id="@+id/example1"
android:icon="@drawable...
Cobham asked 24/2, 2016 at 11:1
0
I am developing an app in Swift with SwiftUI.
I have this setup where I put a TabView inside a NavigationView and used the navigationBarTitle on the tabView. I did this because if I put the Navigat...
Tamelatameless asked 9/8, 2020 at 8:37
1
Solved
When tapping on a NavigationLink, it reduces the opacity slightly. Is there a way to disable this. I tried using .buttonStyle(PlainButtonStyle()) but that didn't have the desired effect.
It is em...
Preemption asked 10/6, 2020 at 17:30
© 2022 - 2024 — McMap. All rights reserved.