Post

Replies

Boosts

Views

Activity

Reply to SwiftUI NavigationLink pops out by itself
I was able to fix my problem by changing the navigationViewStyle to StackNavigationViewStyle in the main navigation view. It doesn't use the split view which is not a big deal for my app. NavigationView {       VStack(alignment: .leading) {         VStack(alignment: .leading, spacing: 20) {           Text("choose a topic to draw: ").font(Font.extraLight17)           HStack(alignment: .center, spacing: 18) {             NavigationLink(destination: LibraryView("lineArt", title: "Line Arts")) {               TopicCell(imageName: "cellLineArt", title: "Line Arts")             }.buttonStyle(PlainButtonStyle())             NavigationLink(destination: TextToDrawView()) {               TopicCell(imageName: "header", title: "Headlines")             }.buttonStyle(PlainButtonStyle())           }           HStack(alignment: .center, spacing: 18) {             NavigationLink(destination: LibraryView("banner", title: "Banners")) {               TopicCell(imageName: "cellBanner", title: "Banners")             }.buttonStyle(PlainButtonStyle())             NavigationLink(destination: LibraryView("reference", title: "References")) {               TopicCell(imageName: "cellReference", title: "Refences")             }.buttonStyle(PlainButtonStyle())           }         }.padding()                   NavigationLink(destination: VectorizeDrawView()) {           BlackButtonView(title: "Select to Draw")         }         .buttonStyle(PlainButtonStyle())         .padding()       }     }.navigationViewStyle(StackNavigationViewStyle()) example
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jul ’21
Reply to setAlternateIconName dont work on ios 15
Experiencing the same issue UIApplication.shared.supportsAlternateIcons is directly false from the system in iOS15, maybe they changed the API but not updated the docs.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Nov ’21
Reply to SwiftUI NavigationLink pops out by itself
I was able to fix my problem by changing the navigationViewStyle to StackNavigationViewStyle in the main navigation view. It doesn't use the split view which is not a big deal for my app. NavigationView {       VStack(alignment: .leading) {         VStack(alignment: .leading, spacing: 20) {           Text("choose a topic to draw: ").font(Font.extraLight17)           HStack(alignment: .center, spacing: 18) {             NavigationLink(destination: LibraryView("lineArt", title: "Line Arts")) {               TopicCell(imageName: "cellLineArt", title: "Line Arts")             }.buttonStyle(PlainButtonStyle())             NavigationLink(destination: TextToDrawView()) {               TopicCell(imageName: "header", title: "Headlines")             }.buttonStyle(PlainButtonStyle())           }           HStack(alignment: .center, spacing: 18) {             NavigationLink(destination: LibraryView("banner", title: "Banners")) {               TopicCell(imageName: "cellBanner", title: "Banners")             }.buttonStyle(PlainButtonStyle())             NavigationLink(destination: LibraryView("reference", title: "References")) {               TopicCell(imageName: "cellReference", title: "Refences")             }.buttonStyle(PlainButtonStyle())           }         }.padding()                   NavigationLink(destination: VectorizeDrawView()) {           BlackButtonView(title: "Select to Draw")         }         .buttonStyle(PlainButtonStyle())         .padding()       }     }.navigationViewStyle(StackNavigationViewStyle()) example
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’21