Posts

Post not yet marked as solved
2 Replies
621 Views
To convert between source and destination in a binding scenario there is a need for binding converters.I used binding converters a lot in Cocoa applications, but now a couple of months within the beta-test program of SwiftUI, I have not figured out yet where they hide in the framework and how to set them up.I hope that some can see, what I am seeing wrong or guide me to a solution to the problem.
Posted Last updated
.
Post marked as solved
2 Replies
4.5k Views
Since Xcode Beta2, I been waiting and hoping that Image View with system images will be working for macOS App, as it does for iOS Apps.To be more precise:In a macOS App project, this line of codeImage(systemName: "star.fill")produces the error: Extraneous argument label 'systemName:' in callI just upgraded to latest Catalina and Xcode beta4.I wonder, if anyone knows a workaround to this problem or know other information about when it will be possible to use system images in macOS Apps as it is possible in iOS Apps.
Posted Last updated
.
Post not yet marked as solved
2 Replies
1.2k Views
A couple of weeks ago, I made my first litte Xcode project using SwiftUI.The ContentView is just a simple TabbedView using binding/state variable to select a tab.Code look like this:import SwiftUI struct ContentView : View { @State var selection: Int = 1 var body: some View { TabbedView(selection: $selection) { Text("Tab 1!").tabItemLabel(Text("Tab 1")).tag(1) Text("Tab 2!").tabItemLabel(Text("Tab 2")).tag(2) } } }Back then, when I first made the project, it was running fine.Now, it just crashes consistently with the log:dyld: lazy symbol binding failed: Symbol not found: _$s7SwiftUI5StateV13delegateValueAA7BindingVyxGvg Referenced from: /Users/asl/Library/Developer/Xcode/DerivedData/aaa-byucivzkosyehgdhjnjxicgrjnbi/Build/Products/Debug/aaa.app/Contents/MacOS/aaa Expected in: /System/Library/Frameworks/SwiftUI.framework/Versions/A/SwiftUIdyld: Symbol not found: _$s7SwiftUI5StateV13delegateValueAA7BindingVyxGvg Referenced from: /Users/asl/Library/Developer/Xcode/DerivedData/aaa-byucivzkosyehgdhjnjxicgrjnbi/Build/Products/Debug/aaa.app/Contents/MacOS/aaa Expected in: /System/Library/Frameworks/SwiftUI.framework/Versions/A/SwiftUII have cleaned build folders, but nothing helps.Auto update is on, so I am running the latest version of Xcode and Catalina.Thanks in advance for any help.
Posted Last updated
.
Post marked as solved
3 Replies
635 Views
Hi,Due to an old iMac, I have not been able to upgrade Xcode for a very long time.Recently, I bought a new iMac and immediately began to port my old code to Swift 5 etc.I quickly discovered that binding was not working anymore. I get the well-known error: this class is not key value coding-compliant for the key ***. On ALL my bindings.To simplify the problem, I decide to do the following:Create a entire new Cocoa projectDump a label on the view controllerCreate a variable 'abc' with type StringSet up a binding from the label to the variable 'abc' in IBStill, the problem is the same.I also notice that there is no completion in IB, when I set up the binding.Thanks in advance for any answers to this weird problem.
Posted Last updated
.