Post

Replies

Boosts

Views

Activity

Reply to EXC_BAD_ACCESS Error in CoreData
For me it was the name of an CoreData entity attribute. It is not allowed to start an attribute name with "new...". Nothing in Xcode does tell you that and it took me days to find out. I just got the EXC_BAD_ACCESS error. Just wanted to leave this here for the next poor soul facing my specific problem ;) The reason for this is explained here: https://developer.apple.com/library/archive/releasenotes/ObjectiveC/RN-TransitioningToARC/Introduction/Introduction.html#//apple_ref/doc/uid/TP40011226-CH1-SW14 I came across this article that lead me to the solution: https://alexj.org/11/core-data-attribute-naming
Feb ’23
Reply to TextField in SwiftUI and Keyboard Management
Please fill a feedback so Apple becomes more aware of that. So many people are asking for e.g. 'becomeFirstResponder' (https://developer.apple.com/forums/thread/650263) but I would also like to see things like (part of my feedback): It would be great to be able to set the first responder manually in SwiftUI (e.g. focus TextField or dismiss the keyboard). It would be great to be able to add a toolbar above the keyboard (add custom buttons like a ready or next button) It would be great to be able to automatically shrink the visible view when the keyboard comes in to view. Like a VStack with the view and the keyboard. So please fill a feedback. I would love to become a native solution.
Jun ’20
Reply to How do I get the multicolor symbol for Image and UIImage?
This works...at least in most cases, e.g. only some symbol will work with .font(.largeTitle). I think it's not yet fully implemented. struct SFSymbols2V: View { 		let symbols: [String] = ["sun.max.fill", 														 "sunrise.fill", 														 "cloud.sun.rain.fill", 														 "cloud.heavyrain.fill", 														 "thermometer.sun.fill", 														 "thermometer.snowflake", 														 "exclamationmark.triangle.fill", 														 "star.fill","pencil.tip.crop.circle.badge.plus"] 		 		var body: some View { 				List{ 						ForEach(symbols, id: \.self){ symbol in 								Image(systemName: symbol) 										.renderingMode(.original) 										.padding(.all, 10) 						} 						.background(Color.gray) 				} 		} }
Jun ’20
Reply to SwiftUI List rows with multiple buttons trigger all buttons
You have to add the BorderlessButtonStyle to each button: List { 		HStack { 				Button(action: { 						print("button 1 tapped") 				}) { 						Text("One") 				}.buttonStyle(BorderlessButtonStyle()) 				Button(action: { 						print("button 2 tapped") 				}) { 						Text("Two") 				}.buttonStyle(BorderlessButtonStyle()) 		} }
Jun ’20