Skip to content
View yannxou's full-sized avatar

Block or report yannxou

Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. PreviewResizable PreviewResizable Public

    View modifier that allows custom resizing in SwiftUI previews. Useful to quickly check how views adapt to different sizes.

    Swift 20

  2. TapTempoButton TapTempoButton Public

    SwiftUI View to easily add tap tempo functionality to music apps.

    Swift 1

  3. SwiftUI: Synchronize bindings SwiftUI: Synchronize bindings
    1
    import SwiftUI
    2
    
                  
    3
    extension View {
    4
    
                  
    5
        /// Synchronizes the bindings so changes in any of them are propagated to the other.
  4. XCTAssert helpers for Collections XCTAssert helpers for Collections
    1
    import XCTest
    2
    
                  
    3
    func XCTAssertEmpty<T>(_ expression: @autoclosure () throws -> T, _ message: @autoclosure () -> String = "", file: StaticString = #filePath, line: UInt = #line) where T : Collection {
    4
        XCTAssertTrue(try expression().isEmpty, message(), file: file, line: line)
    5
    }
  5. PublisherExpectations PublisherExpectations Public

    XCTestExpectation subclasses to simplify Publisher testing and improve test readability

    Swift 4 1