Post

Replies

Boosts

Views

Activity

Big Sur password problem
I have installed Big Sur on an external disk, the internal disk is in Catalina. My profile is admin. When I open a session my password works fine, but when I want to modify something in the system preferences it does not accept my password. Just to ascertain that I did not mix up something I erased the disk, and reinstalled Big Sur. No avail. Any help would be most appreciated. MacBook Air 2020 16 GO i7
8
0
3.2k
Jun ’20
CombineLatest unsolved
Hello,I'm trying the example from the Combine in Practice video, and I'm getting the below compile error.Use of unresolved identifier 'CombineLatest'I have been doing the classical things.- clean the build folder.- verified if there are loose or redundant connexions in the storyboard.- close the projest and restart xcode.- delete the project data below /Library/Developper.Without any success.If I jump to Jump to Definition on CombineLatest in the code I'm taken directly to the definition in the Combine file.Any help or suggestions will be most helpfull.RegardsLars Xcode : 11.4.1 OS : 10.15.5 beta2 Machine : MacMini 201Memory : 32 GOimport UIKitimport Combineclass ViewController: UIViewController { @Published var password: String = "" @IBAction func passwordChanged(_ sender: UITextField) { password = sender.text ?? "" } @Published var passwordAgain: String = "" @IBAction func passwordAgainChanged(_ sender: UITextField) { passwordAgain = sender.text ?? "" } var validatedPassword: AnyPublisher<String?, Never> { return CombineLatest($password, $passwordAgain) { password, passwordAgain in guard password == passwordAgain, password.count > 8 else {return nil } return password } .map { $0 == "password1" ? nil : $0 } .eraseToAnyPublisher() } override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view. }}
8
0
1.9k
Apr ’20