From 954b597ddfae6b5886e2331929728ed2784f860f Mon Sep 17 00:00:00 2001 From: Sarah Date: Thu, 1 Feb 2024 12:13:05 +0100 Subject: [PATCH] Fix typos and "next" buttons --- .../@Published properties.xcplaygroundpage/Contents.swift | 2 +- .../Custom UIKit Publishers.xcplaygroundpage/Contents.swift | 3 +-- .../Pages/Debugging.xcplaygroundpage/Contents.swift | 2 ++ 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Combine.playground/Pages/@Published properties.xcplaygroundpage/Contents.swift b/Combine.playground/Pages/@Published properties.xcplaygroundpage/Contents.swift index b17d6dc..4821c54 100644 --- a/Combine.playground/Pages/@Published properties.xcplaygroundpage/Contents.swift +++ b/Combine.playground/Pages/@Published properties.xcplaygroundpage/Contents.swift @@ -8,7 +8,7 @@ import Combine ## @Published properties A [Property Wrapper](https://www.avanderlee.com/swift/property-wrappers/) that adds a `Publisher` to any property. - _Note: Xcode Playgrounds don't support running this Playground page with the @Published property unfortunately._ + _Note: Xcode Playgrounds doesn't support running this Playground page with the @Published property unfortunately._ */ final class FormViewModel { @Published var isSubmitAllowed: Bool = true diff --git a/Combine.playground/Pages/Custom UIKit Publishers.xcplaygroundpage/Contents.swift b/Combine.playground/Pages/Custom UIKit Publishers.xcplaygroundpage/Contents.swift index 85e61e5..5a1bea2 100644 --- a/Combine.playground/Pages/Custom UIKit Publishers.xcplaygroundpage/Contents.swift +++ b/Combine.playground/Pages/Custom UIKit Publishers.xcplaygroundpage/Contents.swift @@ -87,7 +87,7 @@ subscription.cancel() */ extension CombineCompatible where Self: UISwitch { /// As the `UISwitch.isOn` property does not support KVO this publisher can become handy. - /// The only downside is that it does not work with programmatically changing `isOn`, but it only responds to UI changes. + /// The only downside is that it does not work with programmatically changing `isOn`, it only responds to UI changes. var isOnPublisher: AnyPublisher { return publisher(for: [.allEditingEvents, .valueChanged]).map { $0.isOn }.eraseToAnyPublisher() } @@ -105,4 +105,3 @@ switcher.isOnPublisher.assign(to: \.isEnabled, on: submitButton) switcher.isOn = true switcher.sendActions(for: .valueChanged) print(submitButton.isEnabled) -//: [Next](@next) diff --git a/Combine.playground/Pages/Debugging.xcplaygroundpage/Contents.swift b/Combine.playground/Pages/Debugging.xcplaygroundpage/Contents.swift index 193d1a7..d052724 100644 --- a/Combine.playground/Pages/Debugging.xcplaygroundpage/Contents.swift +++ b/Combine.playground/Pages/Debugging.xcplaygroundpage/Contents.swift @@ -72,3 +72,5 @@ let breakSubscription = subject .breakpoint(receiveOutput: { value in value == "Hello!" }) + +//: [Next](@next)