This file contains 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
iOS 13 name | iOS 14 name | |
---|---|---|
arrow.2.circlepath | arrow.triangle.2.circlepath | |
arrow.2.circlepath.circle | arrow.triangle.2.circlepath.circle | |
arrow.2.circlepath.circle.fill | arrow.triangle.2.circlepath.circle.fill | |
arrow.branch | arrow.triangle.branch | |
arrow.merge | arrow.triangle.merge | |
arrow.right.arrow.left | arrow.left.arrow.right | |
arrow.right.arrow.left.circle | arrow.left.arrow.right.circle | |
arrow.right.arrow.left.circle.fill | arrow.left.arrow.right.circle.fill | |
arrow.right.arrow.left.square | arrow.left.arrow.right.square |
This file contains 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
import Foundation | |
extension UserDefaults { | |
/// Returns an empty `UserDefaults` instance suitable for unit testing. | |
/// | |
/// Based on https://www.swiftbysundell.com/posts/the-power-of-userdefaults-in-swift | |
/// | |
/// - Parameters: | |
/// - functionName: name of the unit test function. |
This file contains 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
// | |
// ECTStepAddViewController.m | |
// EasyCookingTimer | |
// | |
// Created by Geoff Hackworth on 03/03/2012. | |
// Copyright (c) 2012 Hacknicity. All rights reserved. | |
// | |
#import "ECTStepAddViewController.h" |
This file contains 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
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath | |
{ | |
ADTSystemFontTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:[ADTSystemFontTableViewCell reuseIdentifier] forIndexPath:indexPath]; | |
UIFontDescriptor *fontDescriptor = [self fontDescriptorAtIndexPath:indexPath]; | |
NSDictionary *widthSetting = @{UIFontWidthTrait : @(-1.0)}; | |
fontDescriptor = [fontDescriptor fontDescriptorByAddingAttributes:@{UIFontDescriptorTraitsAttribute: widthSetting}]; | |
cell.fontDescriptor = fontDescriptor; |
This file contains 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
// | |
// ContentView.swift | |
// SystemFontWidths | |
// | |
// Created by Geoff Hackworth on 27/01/2023. | |
// | |
import SwiftUI | |
struct ContentView: View { |
This file contains 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
*~ | |
.DS_Store | |
#################################################################################################### | |
# | |
# The following are taken from https://github.com/github/gitignore/blob/main/Global/macOS.gitignore on 28 Mar 2022 (2bb963b dated 6 Jul 2017) | |
# | |
# General | |
.DS_Store |
This file contains 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
// We only want to calculate this once | |
let now = Date.now | |
// Create some test data | |
let allMatches: [Date] = (0...10) | |
.map { _ in | |
let randomNumberOfDays = (-1000...1000).randomElement()! | |
return Calendar.current.date(byAdding: .day, value: randomNumberOfDays, to: now)! | |
} |