Post

Replies

Boosts

Views

Activity

Reply to SwiftUI slider step broken since iOS 15
Trying to post the code in an answer again. VStack { HStack { Text("Trades per session: \(Int(settings.tradesPerGame))"); Spacer() } Slider( value: $settings.tradesPerGame, in: 5 ... 100, step: 5, onEditingChanged: { editing in if !editing { UserDefaults.standard.set( settings.tradesPerGame, forKey: Setting.tradesPerGame.rawValue ) } } ) { EmptyView() } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Oct ’21
Reply to SwiftUI slider step broken since iOS 15
I tried to post it in an answer, but when I submitted it disappeared. This is the code: VStack { HStack { Text("Trades per session: (Int(settings.tradesPerGame))"); Spacer() } Slider( value: $settings.tradesPerGame, in: 5 ... 100, step: 5, onEditingChanged: { editing in if !editing { UserDefaults.standard.set( settings.tradesPerGame, forKey: Setting.tradesPerGame.rawValue ) } } ) { EmptyView() } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Oct ’21
Reply to SwiftUI slider step broken since iOS 15
My code looks like this: VStack { HStack { Text("Trades per session: \(Int(settings.tradesPerGame))"); Spacer() } Slider( value: $settings.tradesPerGame, in: 5 ... 100, step: 5, onEditingChanged: { editing in if !editing { UserDefaults.standard.set( settings.tradesPerGame, forKey: Setting.tradesPerGame.rawValue ) } } ) { EmptyView() } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Oct ’21
Reply to Feedback assistant shouldn't be a black hole
How about a separate feedback assistant for developers with paid accounts?
Replies
Boosts
Views
Activity
Nov ’21
Reply to Xcode 13.1: What happened to shortcuts on international keyboards?
I found comment on shift + cmd + ? on a Swedish keyboard, but it is shown in preferences as cmd + /. It broke after installing Monterey. I deleted the rest because it was not constructive.
Replies
Boosts
Views
Activity
Nov ’21
Reply to SwiftUI slider step broken since iOS 15
Trying to post the code in an answer again. VStack { HStack { Text("Trades per session: \(Int(settings.tradesPerGame))"); Spacer() } Slider( value: $settings.tradesPerGame, in: 5 ... 100, step: 5, onEditingChanged: { editing in if !editing { UserDefaults.standard.set( settings.tradesPerGame, forKey: Setting.tradesPerGame.rawValue ) } } ) { EmptyView() } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to SwiftUI slider step broken since iOS 15
I tried to post it in an answer, but when I submitted it disappeared. This is the code: VStack { HStack { Text("Trades per session: (Int(settings.tradesPerGame))"); Spacer() } Slider( value: $settings.tradesPerGame, in: 5 ... 100, step: 5, onEditingChanged: { editing in if !editing { UserDefaults.standard.set( settings.tradesPerGame, forKey: Setting.tradesPerGame.rawValue ) } } ) { EmptyView() } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to SwiftUI slider step broken since iOS 15
My code looks like this: VStack { HStack { Text("Trades per session: \(Int(settings.tradesPerGame))"); Spacer() } Slider( value: $settings.tradesPerGame, in: 5 ... 100, step: 5, onEditingChanged: { editing in if !editing { UserDefaults.standard.set( settings.tradesPerGame, forKey: Setting.tradesPerGame.rawValue ) } } ) { EmptyView() } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to Feedback assistant shouldn't be a black hole
I am frustrated too. iOS 15 broke orientation change for me, FB9669244. It was nice, now it's ugly. I am ashamed of my app and stare into a black hole.
Replies
Boosts
Views
Activity
Oct ’21
Reply to iOS 15 broke UIViewRepresentable. updateUIView is called before bounds are updated.
Thanks. This sometimes works: func updateUIView(_ uiView: UIView, context: Context) { DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) { uiView.setNeedsDisplay() } } But not for two orientation changes in fast succession. I am so disappointed with this iOS 15 bug.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to I can't send message with iMessage.why?
Try adding .ignoresSafeArea() to your SMSView.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Oct ’21