profile
viewpoint
Matt Faluotico mattfaluotico @square San Francisco, CA http://mattfaluotico.com

kyleve/Listable 79

Declarative list views for iOS apps.

mattfaluotico/CountMySteps 18

iOS pedometer for the iPhone 5S. Will show daily steps and stats.

mattfaluotico/GeoPattern-Cocoa 15

Create sexy patterns with simply a string

mattfaluotico/MFAButton 4

Material Design FAB Button, but for iOS.

mattfaluotico/autocommit 3

Script to auto commit repositories every night

mattfaluotico/MFMaterialView 3

Extends a glow from a touch point on a view; Similar to effect from Material Design

mattfaluotico/ItsCalledAppleWatch 2

Removes the unicode/ascii Apple symbol when used next to 'watch' or 'pay'.

mattfaluotico/DPICalculator 1

DPI Calculator for iOS. A work in progress.

mattfaluotico/JohnPatrickHalling 1

Website for JPHalling

Pull request review commentsquare/Blueprint

Some changes to the ElementPreview type to use it within Market's preview element

 public extension Element {     {         ConstrainedSize(width: width, height: height, wrapping: self)     }+    +    /// Constrains the measured size of the element to the provided `SizeConstraint`.+    func constrained(to sizeConstraint : SizeConstraint) -> ConstrainedSize+    {+        ConstrainedSize(+            width: {+                switch sizeConstraint.width {+                case .atMost(let value): return .atMost(value)+                case .unconstrained: return .unconstrained+                }+            }(),

nit: consider an inline func for this instead of the closures

kyleve

comment created time in 2 hours

startedzsh-users/zsh-autosuggestions

started time in 3 hours

startedJon-Schneider/jon.zsh-theme

started time in 8 hours

created repositoryJon-Schneider/jon.zsh-theme

My zsh theme. A simplified bira with the colors of robbyrussell.

created time in 16 hours

created repositoryJon-Schneider/jon.zsh-theme

My personal zsh theme. A simplified bira with the colors of robbyrussell.

created time in 16 hours

startedtailwindlabs/tailwindcss

started time in a day

fork Jon-Schneider/Lunette

Zero-Config Spectacle Keybindings for Hammerspoon

fork in a day

created repositoryJ3RN/J3RN

created time in 2 days

created repositoryJ3RN/J3RNCRAFT

A vanilla+ modpack built around nature, exploration, and adventure!

created time in 3 days

PR opened square/Blueprint

Reviewers
Some changes to the ElementPreview type to use it within Market's preview element

I started writing up a MarketXcodePreview to let us more easily test Market elements within Xcode's previews, and I had to expose a few previously private values on ElementPreview to make this doable. I also added an easier way to convert SizeConstraint into ConstrainedSize.

+44 -13

0 comment

4 changed files

pr created time in 3 days

create barnchsquare/Blueprint

branch : kve/market-preview-improvements

created branch time in 3 days

push eventkyleve/Listable

Kyle Van Essen

commit sha ae2ceee24a4893ec7b1a544e0f9b181bb8233ad9

Validate fittingSize for ListView.contentSize(in:for:)

view details

Kyle Van Essen

commit sha c307b83785e2045620bc60093097eaa95bba18ea

Merge pull request #232 from kyleve/kve/validate-fitting-size Validate fittingSize for ListView.contentSize(in:for:)

view details

push time in 3 days

delete branch kyleve/Listable

delete branch : kve/validate-fitting-size

delete time in 3 days

push eventkyleve/Listable

Kyle Van Essen

commit sha ae2ceee24a4893ec7b1a544e0f9b181bb8233ad9

Validate fittingSize for ListView.contentSize(in:for:)

view details

push time in 3 days

create barnchkyleve/Listable

branch : kve/validate-fitting-size

created branch time in 3 days

PR opened square/workflow-swift

Reviewers
Introduce renderLatestOutput API

A common pattern in our codebase is to mutate State based on Worker output and then consume that State value in the render method.

Here we introduce a way to convert the latest Output as a Rendering of the Worker. This lets us skip the intermediate value in State to hold this result and the Actions needed to mutate it.

Before:

struct MyWorkflow: Workflow {
    enum Action: WorkflowAction {
        typealias WorkflowType = MyWorkflow

        case update(Int)

        func apply(toState state: inout State) -> MyWorkflow.Output? {
            switch self {
            case .update(let value):
                state.fetchedData = value
            }
            return nil
        }
    }

    func render(state: State, context: RenderContext<Self>) -> Rendering {
        DataFetchWorker()
            .mapOutput { Action.update($0) }
            .rendered(in: context)

        switch state.fetchedData {
        case .loading:
            return LoadingScreen()
        case .data(let data):
            return Screen(data: data)
        }
    }
}

After:

struct MyWorkflow: Workflow {
    func render(state: State, context: RenderContext<Self>) -> Rendering {
        let data = DataFetchWorker()
            .renderLatestOutput(initialValue: .loading)
            .rendered(in: context)

        switch data {
        case .loading:
            return LoadingScreen()
        case .data(let data):
            return Screen(data: data)
        }
    }
}

// AnyWorkflow<Void, Output> -> AnyWorkflow<Output, Never>
+321 -42

0 comment

10 changed files

pr created time in 3 days

push eventsquare/workflow-swift

Dhaval Shreyas

commit sha 7d0fbb3302d92e751e9e0031475b3462edf80b8a

Render Latest Output - Approach 1

view details

push time in 3 days

startedMacDownApp/macdown

started time in 3 days

push eventsquare/workflow-swift

Dhaval Shreyas

commit sha fd205e16014e724de90cf9a99729aae10b434f06

Tweaking

view details

push time in 4 days

fork Jon-Schneider/fluentui-apple

UIKit and AppKit controls for building native Microsoft experiences

https://www.microsoft.com/design/fluent/#/

fork in 4 days

create barnchsquare/workflow-swift

branch : dhaval/renderLatestOutput

created branch time in 4 days

push eventkyleve/Listable

Kyle Van Essen

commit sha b2434977ccb00232a403487aef36fe7c6cb12b8f

Change the default BG color for dark mode.

view details

Kyle Van Essen

commit sha 42d01986dfe2e0dd0242447a4b9073db0dd9b481

Merge pull request #231 from kyleve/kve/dark-mode-bg Change the default BG color for dark mode.

view details

push time in 5 days

delete branch kyleve/Listable

delete branch : kve/dark-mode-bg

delete time in 5 days

pull request commentkyleve/Listable

[WIP, DNM] SPM Integration

Any progress or problems? Do you need some help?

nsillik

comment created time in 5 days

push eventkyleve/Listable

Kyle Van Essen

commit sha b2434977ccb00232a403487aef36fe7c6cb12b8f

Change the default BG color for dark mode.

view details

push time in 5 days

push eventsquare/Blueprint

Ben Cochran

commit sha 66ef21606c7c5c669473696214b4f3b295c6bc60

Archive snapshots per-version

view details

push time in 6 days

push eventsquare/Blueprint

Andrew Watt

commit sha f72ea8aac3970a8f8bb769c423495e6be33b70de

Vend Environment in layout

view details

Andrew Watt

commit sha 22abf2be583168bccc6f8fb81f9184fb71ee4561

Require Environment to get a Measurable

view details

Andrew Watt

commit sha 04844d8001dd62bba72509fd7637c0ed34df34d1

Add environment to tests

view details

Andrew Watt

commit sha 906cbb4fdbb1ccccb867eb137c27fedae5e96230

Ignore swiftpm files

view details

Andrew Watt

commit sha 4bb4d50424b22c0570c553b7200932bb7f164d4c

Tighten Environment access levels

view details

Andrew Watt

commit sha 08b428c7cd4cf76eee82fd6ae30b5fc990070d65

Flesh out Environment utility elements

view details

Andrew Watt

commit sha d5d3e39020d4d7423152e0639864d9d3b5a686b7

Simplify environment storage

view details

Andrew Watt

commit sha 07db831491d8192ca516a4b82ce90451a857c0a7

Environment tests

view details

Andrew Watt

commit sha f829636575ec5ca51ba95b9fb49d501de71600f9

Environment example usage

view details

Andrew Watt

commit sha 3927908363e6ae4efb1ed1157788d0e6dc9d3ba1

Merge branch 'master' of https://github.com/square/Blueprint into watt/environment-api-nonmeasurable * 'master' of https://github.com/square/Blueprint: A better workaround for missing dylibs Workaround for libswiftsimd.dylib not being copied Bump CocoaPods version Update to Xcode 11 and Swift 5.1

view details

Andrew Watt

commit sha 4958a2e0156bec7821ecbb7a9be052db095972d3

Merge branch 'master' of https://github.com/square/Blueprint into watt/environment-api-nonmeasurable # By Kyle Van Essen (9) and Andrew Watt (8) # Via GitHub (10) and Kyle Van Essen (4) * 'master' of https://github.com/square/Blueprint: Add support for previewing elements in Xcode's SwiftUI preview via ElementPreview Move to correct dir Add changelog Releasing 0.8.0 ScrollView content size constraints Correct stack measurement during underflow Stack measuring tests Code review fixes Code review Revert BlueprintUICommonControls.podspec testspec Add API for keyboard observation on ScrollView Releasing 0.7.0 Code review from kb. Fix comment about extraSize ASCII diagrams in stack layout Begin making element diffing smarter by only incrementing implicit identifiers by their Element.Type. Measure stack axes separately # Conflicts: # BlueprintUI/Sources/Element/ElementContent.swift

view details

Andrew Watt

commit sha e8291b875df43829bf65399718c1382599e5cb26

Force cast value

view details

Andrew Watt

commit sha d366b4c6af0e2cf951b3ac63ef7edcaa64206ee3

Rename some environment types ComposedElement > DynamicElement Adapted > AdaptedEnvironment

view details

Andrew Watt

commit sha a7e75578148ca57596ebd56511ef327c2894a5b0

Merge branch 'master' of https://github.com/square/Blueprint into watt/environment-api-nonmeasurable * 'master' of https://github.com/square/Blueprint: Reset `invalidateIntrinsicContentSize` to unconstrained when the element changes Implement intrinsicContentSize on BlueprintView

view details

Kyle Van Essen

commit sha 5da4863388134038d3f7b97bc6db786a50149c87

Add SwiftUI-style builder functions to reduce nesting.

view details

Kyle Van Essen

commit sha ecb5dae0e6b015888276d37580955488f2973b60

Merge branch 'master' into kve/api-ergo-improvements

view details

Kyle Van Essen

commit sha be142585684f1e27204f31361e9f37362692dccc

Code review

view details

Kyle Van Essen

commit sha 4797e78ab426aa65f56cc66e6d79460481f2a656

Merge pull request #88 from square/kve/api-ergo-improvements SwiftUI Style .foo() wrappers

view details

Kyle Van Essen

commit sha e7265a430beb414252c0519db3e9ab0256fb016e

Update sizeThatFits to check each axis' constraint separately.

view details

Kyle Van Essen

commit sha 34e967ffe0efe79f266f64d2ca84b6bd529a7b01

Merge branch 'master' into kve/size-that-fits-separate-axis * master: Code review Add SwiftUI-style builder functions to reduce nesting.

view details

push time in 6 days

more