In the root directory of the project you want to have version control, type the following:
git init
This is a one time thing. After you initialize the repo, you won't have to do it again.
// | |
// TwoHandledSlider.swift | |
// CombineQuake | |
// | |
// Created by Adrian Bolinger on 4/17/21. | |
// | |
import SwiftUI | |
struct TwoHandledSliderView: View { |
import UIKit | |
/* | |
This is a high-level physics for poets sketch of an implementation for | |
sending and receiving messages. YOU'LL NEED TO REFINE IT. | |
If you want to implment encryption, I'd use a framework like CryptoKit, | |
or some well-known, public framework w/ a lotta stars, recent commits, | |
and not a lot of issues on the GitHub page. |
Summary from HackingWithSwift.com
The CaseIterable protocol provides an allCases method that turns all of your cases into an array.
enum Pasta: String, CaseIterable {
case canneloni = "Cannelloni pasta"
extension Double { | |
func convert(from originalUnit: UnitLength, to convertedUnit: UnitLength) -> Double { | |
return Measurement(value: self, unit: originalUnit).converted(to: convertedUnit).value | |
} | |
} | |
/* | |
let miles = 26.2 | |
let meters = miles.convert(from: .miles, to: .meters) | |
*/ |
// | |
// ConnectivityUtility.swift | |
// | |
// Created by Adrian Bolinger on 7/10/18. | |
// Copyright © 2018 Adrian Bolinger. All rights reserved. | |
// | |
import UIKit | |
import Reachability |
// | |
// MapRegionUtility.swift | |
// QuakeData | |
// | |
// Created by Adrian Bolinger on 7/9/18. | |
// Copyright © 2018 Adrian Bolinger. | |
// | |
/* | |
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: |