This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct JobApplication: Hashable, Identifiable { | |
var id: String | |
var jobPostingId: String | |
var answers: [CustomQuestionAnswer] | |
var questions: [CustomQuestion] | |
} | |
protocol CustomQuestion: Hashable, Identifiable { | |
var id: String { get set } | |
var prompt: String { get set } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct Profile: Codable { | |
var skills: [ProfileSkill] | |
var styles: [ProfileStyle] | |
var roles: [ProfileRole] | |
} | |
struct ProfileSkill: Codable { | |
var key: String | |
var label: String | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Swift Attributed Strings | |
let quote = "Holy fucking shit" | |
let firstAttributes: [NSAttributedString.Key: Any] = [.backgroundColor: UIColor.green, NSAttributedString.Key.kern: 10] | |
let secondAttributes = [NSAttributedString.Key.foregroundColor: UIColor.red] | |
let firstString = NSMutableAttributedString(string: "Holy ", attributes: firstAttributes) | |
let secondString = NSAttributedString(string: "fucking ", attributes: secondAttributes) | |
let thirdString = NSAttributedString(string: "shit") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// MKMapView+ZoomLevel.h | |
// | |
// Created by Daniel.Burke on 7/3/14 via Nikita Galayko @ StackOverflow | |
// Copyright (c) 2014 Forrent.com. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
#define MERCATOR_RADIUS 85445659.44705395 | |
#define MAX_GOOGLE_LEVELS 20 |