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 | |
class NotificationTestCase: XCTestCase { | |
func testTriggerNotification() { | |
expectation(forNotification: .fooBar, | |
object: nil, | |
handler: nil) | |
let notificationCenter = NotificationCenter.default |
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
class CustomNotificationCenterTestCase: XCTestCase { | |
var notificationCenter: NotificationCenter! | |
override func setUp() { | |
super.setUp() | |
notificationCenter = NotificationCenter() | |
} |
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
// | |
// VerticalGradientImageView.swift | |
// | |
// Created by Felix Mau on 23/09/18. | |
// Copyright © 2018 Felix Mau. All rights reserved. | |
// | |
import UIKit | |
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
// | |
// UIView+AnimateAlpha.swift | |
// | |
// Created by Felix Mau on 17/12/18. | |
// Copyright © 2018 Felix Mau. All rights reserved. | |
// | |
import UIKit | |
extension UIView { |
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
// | |
// URLSession+Result.swift | |
// HttpRequestSample | |
// | |
// Created by Felix Mau on 08/16/19. | |
// Copyright © 2019 Felix Mau. All rights reserved. | |
// | |
import Foundation |
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
// | |
// 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
// | |
// ScreenOverlayViewModel.swift | |
// | |
// Created by Felix Mau on 12.10.19. | |
// Copyright © 2019 Felix Mau. All rights reserved. | |
// | |
protocol ScreenOverlayViewModelDelegate: AnyObject { | |
func screenOverlayViewModelDidUpdate(alpha: CGFloat) | |
} |