Finder > Settings, then click Advanced. Select or deselect "Show all filename extensions"
Hidden files
toggle:
| import SwiftUI | |
| import PlaygroundSupport | |
| // https://www.hackingwithswift.com/quick-start/swiftui/how-to-synchronize-animations-from-one-view-to-another-with-matchedgeometryeffect | |
| struct AdaptiveStack<Content: View>: View { | |
| var content: () -> Content | |
| @Binding var vertical: Bool | |
| init(vertical: Binding<Bool>, @ViewBuilder content: @escaping () -> Content) { | |
| _vertical = vertical |
https://swiftdoc.org/v4.2/protocol/optionset
| Swift | Binary |
|---|---|
| intersection(_:) | OR |
| subtracting(_:) | |
| symmetricDifference(_:) | EXC OR |
| union(_:) | AND |
| // Is this a good shorthand instead of using a switch? | |
| enum State { | |
| case running | |
| case jumping | |
| } | |
| var currentState: State = .running | |
| let stateView = currentState.transform {[ |
| enum Action: Int { | |
| case buttonDown | |
| } | |
| struct State { | |
| var counter: Int = 0 | |
| } | |
| struct View { | |
| var height: Float |
| Design | |
| ๐จ Sketch files | |
| ๐ UI Flow | |
| ๐ Colors | |
| ๐ Style guide | |
| ๐ผ Images | |
| Code | |
| ๐ฆ Swift | |
| ๐จย Xcode |
| #!/bin/bash | |
| # Clean Xcode files | |
| # @richy486 https://gist.github.com/richy486 | |
| # http://ajithrnayak.com/post/95441624221/xcode-users-can-free-up-space-on-your-mac | |
| STATUS='\033[0;36m' | |
| WARNING='\033[0;33m' | |
| ERROR='\033[0;31m' | |
| CMD='\033[0;92m' | |
| NC='\033[0m' # No Color |
| { | |
| "@^\UF701" = "noop"; | |
| "@^\UF702" = "noop"; | |
| "@^\UF703" = "noop"; | |
| } | |
| // https://apple.stackexchange.com/questions/23981/command-control-arrow-beeps-plays-alert-sound-in-lion | |
| // https://kevinyank.com/posts/fix-system-beep-vscode/ |
| // | |
| // UITextField+Rx+Extensions.swift | |
| // ddxp-kiosk | |
| // | |
| // Created by Richard Adem on 6/20/17. | |
| // Copyright ยฉ 2017 Richard Adem. All rights reserved. | |
| // | |
| import RxSwift | |
| import RxCocoa |
| if you merged 'someUpdate' branch into 'wrongBranch' branch | |
| do this on 'wrongBranch' | |
| $ git reset --soft HEAD^ | |
| $ git push -f origin HEAD^:wrongBranch | |
| $ git push |