StackOverflow Questions for Tag: swiftui-environment

ThomasMead
ThomasMead

Reputation: 33

Mystified by how EnvironmentObject is being updated (or not)

Score: 1

Views: 98

Answers: 1

Read More
bpisano
bpisano

Reputation: 560

Using protocols with the newest @Environment in SwiftUI

Score: 10

Views: 2605

Answers: 1

Read More
Anton
Anton

Reputation: 3289

SwiftUI: How to create a binding to a property of an environment object?

Score: 6

Views: 2151

Answers: 1

Read More
Mischa
Mischa

Reputation: 17269

Is there any way to access the stroke width (or style) within a SwiftUI view?

Score: 1

Views: 244

Answers: 0

Read More
Kevin
Kevin

Reputation: 27

How do you return back to the HomeView after hitting a complete/submitted button?

Score: 0

Views: 123

Answers: 1

Read More
Kunal Verma
Kunal Verma

Reputation: 602

Create different stroke styles on same Path - SwiftUI (Based on value between 0-1 like gradient)

Score: 6

Views: 1140

Answers: 1

Read More
Roman R
Roman R

Reputation: 51

Swiftui optional picker get deselected any time environment object changes

Score: 0

Views: 86

Answers: 0

Read More
Kevin
Kevin

Reputation: 27

How do I persist the button color after favoriting in SwiftUI?

Score: 2

Views: 154

Answers: 1

Read More
dwl96
dwl96

Reputation: 11

SwiftUI hanging with @Environment and NavigationStack when passing Bindings

Score: 1

Views: 248

Answers: 0

Read More
workbytaylor
workbytaylor

Reputation: 15

How can I connect a context to a persistent store coordinator in a sheet?

Score: 1

Views: 297

Answers: 1

Read More
pushpank
pushpank

Reputation: 262

Set Image and Title in Navigation Bar in SwiftUI

Score: 12

Views: 4808

Answers: 2

Read More

Work with Property wrappers in nested views in SwiftUI

Score: 0

Views: 144

Answers: 1

Read More
Ammar Ahmad
Ammar Ahmad

Reputation: 884

SwiftUI Using @MainActor with EnvironmentKey

Score: 5

Views: 1342

Answers: 2

Read More
Lukas Šestić
Lukas Šestić

Reputation: 21

SwiftUI environment value not passed to child views when root is used from UIHostingController

Score: 2

Views: 859

Answers: 1

Read More
Pink
Pink

Reputation: 531

EnvironmentValues getter is being called on app launch without access

Score: 1

Views: 56

Answers: 0

Read More
Jan
Jan

Reputation: 1318

Index out of range when updating a @Published var

Score: 1

Views: 169

Answers: 1

Read More
Theuns Botha
Theuns Botha

Reputation: 31

Changes in @Published ObservableObject not updating Views

Score: 0

Views: 129

Answers: 0

Read More
Tobilence
Tobilence

Reputation: 145

Displaying a published integer in SwiftUI Text

Score: 5

Views: 9641

Answers: 2

Read More
Emere
Emere

Reputation: 45

How do I pass data from a variable in a view to a view model class

Score: 0

Views: 378

Answers: 2

Read More
Michael Hsieh
Michael Hsieh

Reputation: 127

SwiftUI: Logout and switch screens from a popover

Score: 1

Views: 2116

Answers: 2

Read More
PreviousPage 2Next