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 |
// | |
// 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 |