NEW: My new book Pro SwiftUI is out now – level up your SwiftUI skills today! >>

Forums > SwiftUI

Help and discussion for SwiftUI.

  Title Replies Views Activity

SOLVED: centre coordinates from visible map?

9

636

Jul 26

Should I always downsample when loading user-saved images?

0

99

Jul 26

SOLVED: Picker bogged down with huge list. Is there a way to improve performance?

4

259

Jul '23

Initialize persistent data on first application run

0

98

Jul '23

SOLVED: Trying to set the TabView selection for TabViewStyle of paged

1

153

Jul '23

SOLVED: SwiftUI Preview Crashes with CoreData

3

297

Jul '23

DragGestures of subviews override List's scrolling

0

101

Jul '23

SOLVED: What is the best way to change the height/wide of the separator in a List?

1

155

Jul '23

Why does the first size of the GeometryReader's closure parameter in the .task modifier have a value of 0 and how can I fix it?

0

129

Jul '23

CoreData and NSPersistentCloudKitContainer (Sharing)

1

160

Jul '23

Toolbar item keyboard shortcut not showing in shortcuts list when holding command key on iPad?

0

94

Jul '23

Data not being written.

1

173

Jul '23

SOLVED: Review of my code

2

190

Jul '23

Form Section clips the content, how to avoid this?

2

154

Jul '23

Type of expression is ambiguous without more context on a scrollview

2

254

Jul '23

SOLVED: Any alternative to StackNavigationViewStyle()

1

110

Jul '23

SOLVED: Custom font in navigation title and back button?

5

961

Jul '23

SOLVED: Environment Objects and "Accessing StateObject's object without being installed on a View. This will create a new instance each time."

2

258

Jul '23

Textfield reusable component

0

125

Jul '23

How to display difference between some Date and now?

2

185

Jul '23

Toggling object properties inside array.

0

102

Jul '23

SOLVED: Creating a launch screen

5

642

Jul '23

SOLVED: Reduce the space between a Label's title and icon

3

505

Jul '23

Undo a backward move when using NavigationStack

0

87

Jul '23

NavigationStack inside NavigationSplitView: Changing top-level tab does not change view

0

168

Jul '23

SOLVED: Weird issue with DateComponentsFormatter

2

181

Jul '23

Menu dismissal problem - depends on menu content

1

146

Jul '23

Data transfer problem 🙄

0

155

Jul '23

Update the route line when user change current location

0

92

Jul '23

Odd background colour showing behind SwiftUI View on rotation of UIViewController with a UIHostingController / SwiftUI view

1

359

Jul '23

SwiftData Getting a Linker Error

0

149

Jul '23

SOLVED: SwiftUI Localization?

2

189

Jul '23

UI-related problems caused by filter() with a huge array.

8

484

Jul '23

Updating SwiftUI when Core Data changes with computed property

1

239

Jul '23

Creating an advanced effect with the snapping scroll.

0

136

Jul '23

Intercepting swipe-dismiss of a modal sheet

0

104

Jul '23

Trying to figure out how view transitions work

2

150

Jul '23

Testflight question concerning Mac Catalyst apps

0

127

Jul '23

[Solved] iOS 17 MapKit: How to use Map(selection:)?

1

833

Jul '23

SOLVED: BetterRest (Hacking with iOS: SwiftUI Edition project 4) - help with Challenge 3

12

7731

Jul '23

SOLVED: Passing @StateObject into ViewModel

2

353

Jul '23

Problems with @State, bindings and #Preview- please help

0

152

Jul '23

Return from initializer without initializing all stored properties

1

148

Jul '23

Black Screen

0

164

Jul '23

Why I can still add Candy, although I set constaints for shortName?

4

249

Jul '23

SOLVED: Detecting if app is running on MacOS

3

318

Jul '23

Resolved colors and SwiftData

1

473

Jul '23

Compiler warning - Non-constant range: argument must be an integer literal

6

49082

Jun '23

SOLVED: Aligning sf symbol images in a bottom toolbar

2

216

Jun '23

How to debug network failure when using AsyncImage API?

0

84

Jun '23

100 days if swiftUI: Day 40 moonshot ERROR

4

307

Jun '23

SwiftUI: How to bind separate amounts to each instance of a dynamic view?

0

109

Jun '23

How save data.in offline mode? 🙄

6

603

Jun '23

Animated login screen & power consumption

0

122

Jun '23

Trying to follow a WWDC tutorial fail

1

252

Jun '23

[Bug?] App Craches when using Destructive Button in SwipeActions In Child View

0

88

Jun '23

SOLVED: Automatic data download and view refresh using timer?

2

199

Jun '23

TextScale modifier

0

121

Jun '23

SwiftUI view inside a UIHostingController doesn't display correctly

0

718

Jun '23

fullScreenCover with the new @Observable

2

298

Jun '23

App runs fine, but SwiftUI preview complains “executeFetchRequest:error: A fetch request must have an entity..”

0

123

Jun '23

SOLVED: No exact matches in call to instance method 'append'

2

260

Jun '23

List, animation , infinite scroll

0

321

Jun '23

ZStack Animation animates anything, not just the conditional view switch

4

471

Jun '23

SOLVED: Help me understand the View protocol

4

331

Jun '23

SOLVED: @FetchRequest not refreshing

2

195

Jun '23

Swift Preview Error: Cannot Preview in this file | WWDC Session code along

0

232

Jun '23

Can anyone please walk me through understanding this syntax?

5

417

Jun '23

Suppressing File->New without affecting Open/Open Recent?

0

121

Jun '23

SwiftUI's new Observation approach

0

236

Jun '23

SOLVED: Problem with Animation working when used in "sub sub view" (don't have a better way to describe it, sorry)

2

365

Jun '23

SOLVED: Trying to change the background color of a view presented using presentationDetents

2

296

Jun '23

Unable to get proxy.size.height when applying onAppear inside a GeometryReader code block.

15

1138

Jun '23

Static member 'currency' cannot be used on protocol metatype 'SomeProtocol.Type'

1

256

Jun '23

Trigger button action / view re-rendering of child view from parent view

1

279

Jun '23

How do I get the background to take up the whole screen

1

134

Jun '23

How to detect if a text field is focused system-wide manner?

0

103

Jun '23

SwiftUI: How to draw a pixel by SwiftUI?

2

379

Jun '23

SOLVED: Prompt on window closing, macOS

1

407

Jun '23

Is there anyone I can go to for a code review or advice for improvement?

0

97

Jun '23

Is it possible to type cast Binding<Any Object> to Binding<Object>

0

183

Jun '23

Creating a daily view calendar with overlapping events

2

830

Jun '23

SectionedFetchedRequest object selection

4

358

Jun '23

SOLVED: Can you guys help me understand this syntax? Please

2

236

Jun '23

SOLVED: Happy father's day to all the fathers! How can I load a JSON file and display data on macOS application launch?

2

201

Jun '23

Create bottom slider view like Find My iPhone app

3

514

Jun '23

Launch screen image incorrectly displayed

1

177

Jun '23

Moving relationship to many data from CoreData to an array of custom struct?

2

320

Jun '23

So we have WWDC 5th June, what's on your wish list.?

4

670

Jun '23

SOLVED: #Preview macros with @Binding<String>

3

1269

Jun '23

SOLVED: Problems adding SwiftUI to UIKit app: Must do 'viewWillLayoutSubviews' and set contentview.view.frame or it breaks?!

1

333

Jun '23

[Solved] How to play a YouTube video in SwiftUI ?

2

4182

Jun '23

SOLVED: Need a helpful pointer in the right direction

5

332

Jun '23

SOLVED: Change displayed informations while scrolling

4

463

Jun '23

SwiftUI MapKit - MapAnnotation - Publishing changes from within view updates is not allowed, this will cause undefined behavior

0

192

Jun '23

Animating a picker using a spring effect help

0

121

Jun '23

Conundrum; Overlay disables button tapping. Setting .allowsHitTesting(false) disables underlying gestures

0

332

Jun '23

Unable to add Done button to keyboard to dismiss keyboard after finishing typing in TextField

13

941

Jun '23

List with multiple selections from core data

0

187

Jun '23

SOLVED: SWIFTUI ViewModifier using UIViewRepresentable; getting a value from the UIView to my SwiftUI View

3

565

Jun '23

All interactions here are governed by our code of conduct.

Hacking with Swift is sponsored by Essential Developer

SPONSORED Join a FREE crash course for mid/senior iOS devs who want to achieve an expert level of technical and practical skills – it’s the fast track to being a complete senior developer! Hurry up because it'll be available only until October 1st.

Click to save your free spot now

Sponsor Hacking with Swift and reach the world's largest Swift community!

 
Unknown user

You are not logged in

Log in or create account
 

Link copied to your pasteboard.