This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // Combine-PassthroughSubject-CurrentValueSubject.playground | |
| // | |
| // Created by Felix Mau on 30.07.20. | |
| // Copyright © 2020 Felix Mau. All rights reserved. | |
| // | |
| import PlaygroundSupport | |
| import Combine |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // ScreenOverlayViewModel.swift | |
| // | |
| // Created by Felix Mau on 12.10.19. | |
| // Copyright © 2019 Felix Mau. All rights reserved. | |
| // | |
| import Foundation | |
| protocol ScreenOverlayViewModelDelegate: AnyObject { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // UIColor+MakeDynamicColor.swift | |
| // | |
| // Created by Felix Mau on 22/09/19. | |
| // Copyright © 2019 Felix Mau. All rights reserved. | |
| // | |
| import Foundation | |
| extension UIColor { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SWIFTFORMAT="${PODS_ROOT}/SwiftFormat/CommandLineTool/swiftformat" | |
| if [ ! -f "$SWIFTFORMAT" ]; then | |
| echo "warning: SwiftFormat not installed!" | |
| exit 1 | |
| fi | |
| $SWIFTFORMAT ./ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // For reusability reasons I've moved the code into a Framework. | |
| // https://github.com/fxm90/LightweightObservable | |
| // |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // UIView+AnimateAlpha.swift | |
| // | |
| // Created by Felix Mau on 17.12.18. | |
| // Copyright © 2018 Felix Mau. All rights reserved. | |
| // | |
| import UIKit | |
| /// Convenience animation helpers for `GradientActivityIndicatorView` that |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // VerticalGradientImageView.swift | |
| // | |
| // Created by Felix Mau on 23/09/18. | |
| // Copyright © 2018 Felix Mau. All rights reserved. | |
| // | |
| import UIKit | |
| final class VerticalGradientImageView: UIImageView { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // String+Log.swift | |
| // | |
| // Created by Felix Mau on 16.09.18. | |
| // Copyright © 2018 Felix Mau. All rights reserved. | |
| // | |
| import Foundation | |
| extension String { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import XCTest | |
| @MainActor | |
| final class CustomNotificationCenterTestCase: XCTestCase { | |
| func test_notification_isPosted() { | |
| // Given | |
| let notificationCenter = NotificationCenter() | |
| let notificationExpectation = XCTNSNotificationExpectation( | |
| name: .fooBar, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import XCTest | |
| @MainActor | |
| final class NotificationTestCase: XCTestCase { | |
| func test_notification_isPosted() { | |
| // Given | |
| expectation( | |
| forNotification: .fooBar, | |
| object: nil, |