StackOverflow Questions for Tag: swiftui-environment

Najoua Mahi
Najoua Mahi

Reputation: 316

Navigation Issue in iOS 18: Duplication of Navigation Trigger When Using @Environment(\.dismiss) in SwiftUI

Score: 0

Views: 95

Answers: 1

Read More
TT--
TT--

Reputation: 3205

How to open and display different files in WindowGroup windows (tabs) using fileImporter from CommandGroup on the WindowGroup?

Score: 0

Views: 30

Answers: 0

Read More
shodak
shodak

Reputation: 85

Can I pass an @Environment property as a parameter to a subview in order to use two-way bindings on its properties?

Score: 0

Views: 25

Answers: 0

Read More
user11371080
user11371080

Reputation:

SwiftUI - Pass environment object to a View

Score: 1

Views: 1441

Answers: 1

Read More
Enric
Enric

Reputation: 325

How to initialize a property so that the onChange does not track its change of value until properly initialized

Score: 1

Views: 151

Answers: 3

Read More
oosh
oosh

Reputation: 189

Thread 1: Fatal error: No ObservableObject of type Bar found

Score: 1

Views: 776

Answers: 1

Read More
MatFetsch
MatFetsch

Reputation: 65

Cannot call mutating async function 'create' on actor-isolated property 'dataService'

Score: 1

Views: 202

Answers: 2

Read More
Sweeper
Sweeper

Reputation: 273510

Where should I set the environment values so that I can read it in a CustomPresentationDetent?

Score: 1

Views: 163

Answers: 2

Read More
Jintae
Jintae

Reputation: 53

SwiftData not refreshing with Array

Score: 0

Views: 158

Answers: 1

Read More
alanrick
alanrick

Reputation: 109

Is injecting data using the environment equivalent to passing data in parameters?

Score: 2

Views: 66

Answers: 1

Read More
Eric Agredo
Eric Agredo

Reputation: 539

Change Sign In With Apple button style based on current color scheme

Score: 6

Views: 3274

Answers: 4

Read More
Felipe
Felipe

Reputation: 510

Is there a way to override a view modifier?

Score: 3

Views: 1520

Answers: 2

Read More
Pieter
Pieter

Reputation: 187

How to manage global state in SwiftUI and persist it

Score: 0

Views: 166

Answers: 0

Read More
Travis
Travis

Reputation: 3089

Bug in SwiftUI? iOS 15. List refresh action is executed on an old instance of View -- how to work around?

Score: 2

Views: 1047

Answers: 5

Read More
Jeffrey Berthiaume
Jeffrey Berthiaume

Reputation: 4594

How do I dynamically change the defaultSize for a SwiftUI window?

Score: 0

Views: 89

Answers: 1

Read More
MatFetsch
MatFetsch

Reputation: 65

Preview canvas crashing because environmentObject not set properly

Score: 1

Views: 43

Answers: 1

Read More
MrKew
MrKew

Reputation: 989

What is the scope of SwiftUI onChange modifier?

Score: 0

Views: 91

Answers: 0

Read More
Arturo
Arturo

Reputation: 4200

How to initialize app with an Async function?

Score: 6

Views: 9366

Answers: 2

Read More
promacuser
promacuser

Reputation: 396

Replicating foregroundStyle(_:) in SwiftUI

Score: 0

Views: 637

Answers: 1

Read More
Johanna
Johanna

Reputation: 189

Rectangle progress bar swiftUI

Score: 2

Views: 3497

Answers: 3

Read More
PreviousPage 1Next