Skip to content

Instantly share code, notes, and snippets.

View scott-lydon's full-sized avatar

Scott scott-lydon

  • High Five
  • Burlingame
View GitHub Profile
struct TestText: View {
var body: some View {
VStack(alignment: .leading) {
Text("Hello world")
}
}
}
struct TestText: View {
import UIKit
extension UINavigationController {
// - MARK: Extracted reusable methods so that implementation changes reflect wherever used.
func viewController() {
navigationController.pushViewController(ViewController.instantiate(), animated: false)
}
extension UINavigationController {
// - MARK: Extracted reusable methods so that implementation changes reflect wherever used.
func viewController() {
navigationController.pushViewController(ViewController.instantiate(), animated: false)
}
func buySubscription() {
navigationController.pushViewController(BuyViewController.instantiate(), animated: true)
@IBAction func buyTapped(_ sender: Any) {
coordinator?.buySubscription(payload: "payload here")
}
// -------------------------------
func buySubscription(payload: String) {
let vc = BuyViewController.instantiate()
vc.payload = payload
vc.coordinator = self
extension ViewController {
@IBAction func blueTapped(_ sender: Any) {
navigationController?.pushViewController(BlueViewController.instantiate(), animated: true)
}
}
class BlueViewController: UIViewController {}
import UIKit
extension ViewController {
@IBAction func blueTapped(_ sender: Any) {
coordinator?.goToBlueView()
}
}
extension MainCoordinator {
import UIKit
class SceneDelegate: UIResponder, UIWindowSceneDelegate {
var window: UIWindow?
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
guard let windowScene = (scene as? UIWindowScene) else { return }
let viewController = ViewController.instantiate()
@scott-lydon
scott-lydon / Curriculum.md
Last active September 17, 2022 01:07
iOS Mentee curriculum

My stretch goals:

  • Help you to get a professional offer by May 2023 (Whether you intend to accept it or not).

If you have the following properties/skills it is highly likely you will get an offer

  • Add 1200+ software or software recruiter Connections on Linkedin (this is the foundation of your iOS job hunt pipeline). If you don't have this, it is extremely difficult to get to the skill parts.

  • Create a Linkedin profile that has "jobs" and "Company's" for all the software projects you've worked on, and if you have none, then "jobs" or projects you intend to work on. Like on my Linkedin, I created company pages for projects I've worked on "In order to present them better to the employment market." I don't condone accepting jobs with false pretenses to an employer's detriment, however, the sooner you get experience with the lengthy interview processes, the sooner you can start passing them. You might just finish those projects by the time you get an offer.

  • Go through 40

@scott-lydon
scott-lydon / gist:47eca84dc2d11bc83d38dfae4509b3ad
Created July 18, 2022 20:12
Debug printout for standard Interview.
hash: 463098683679436443 starts
tmpAddress: 0x14e510c20, indexPath: [0, 0], url: https://random.dog/00186969-c51d-462b-948b-30a7e1735908.jpg line 42
Image cache not available tmpAddress: 0x14e510c20, indexPath: [0, 0], url: https://random.dog/00186969-c51d-462b-948b-30a7e1735908.jpg
98 assigning data task! tmpAddress: 0x14e510c20, indexPath: [0, 0], url: https://random.dog/00186969-c51d-462b-948b-30a7e1735908.jpg
before running: nil hash: 463098683679436443
after running: nil hash: 463098683679436443
109 interceptor data action: Optional((Function)), interceptor task: nil
hash: 463098683679436443 ends