git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
| // Run any SwiftUI view as a Mac app. | |
| import Cocoa | |
| import SwiftUI | |
| NSApplication.shared.run { | |
| VStack { | |
| Text("Hello, World") | |
| .padding() | |
| .background(Capsule().fill(Color.blue)) |
| //: A UIKit based Playground for presenting user interface | |
| import UIKit | |
| import PlaygroundSupport | |
| extension Notification { | |
| struct UserInfoKey<ValueType>: Hashable { | |
| let key: String | |
| } | |
| struct Rule { | |
| let index1: Int | |
| let index2: Int | |
| let index3: Int | |
| let result: (_ value1: Int, _ value2: Int, _ value3: Int) -> Int | |
| } | |
| let rules: [Rule] = { | |
| var rules: [Rule] = [] |
| func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize { | |
| let text = collections[indexPath.row].name | |
| let width = UILabel.textWidth(font: titleFont, text: text) | |
| return CGSize(width: width + left + right, height: height) | |
| } |
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream