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
# frozen_string_literal: true | |
require 'set' | |
def adjust_pod_installation_for_mac_catalyst(installer, resource_bundles_needing_dev_team, team_id) | |
puts('Updating Pod Configuration To Support Mac Catalyst') | |
exclusions = scan_for_exclusions(installer) | |
update_xcconfig(installer, exclusions) | |
update_frameworks_script(installer, exclusions) | |
disable_mac_catalyst_build_setting(installer.pods_project.targets, exclusions) |
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
#!/usr/bin/swift | |
import Foundation | |
class TestRepeater { | |
func runTest() { | |
let result = shell("/usr/bin/xcodebuild", [ | |
"-project", "PSKit.xcodeproj", | |
"-scheme", "PSKit", | |
"test-without-building", |
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
- (void)evaluate { | |
NSExpression *expression = [NSExpression expressionWithFormat:@"FUNCTION(source.firstName, 'stringByAppendingFormat:', ' %@', source.lastName)"]; | |
NSDictionary *expressionObject = @{NSMigrationSourceObjectKey: @{@"firstName": @"tacos", @"lastName": @"burger"}}; | |
id result = [expression expressionValueWithObject:expressionObject context:nil]; | |
NSLog(@"%@", result); | |
} | |
//on simulator: "tacos burgers" | |
//on device: "tacos %@" |
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
iPad 9.7 inch | |
Portrait | |
.large | |
minimumInteritemSpacing: 40.0 | |
minimumLineSpacing: 30.0 | |
sectionInset: UIEdgeInsets(top: 7.0, left: 35.0, bottom: 7.0, right: 35.0) | |
itemSize: (206.0, 206.0) |
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
public extension CustomDebugStringConvertible { | |
var debugDescription: String { | |
return debugDescription() | |
} | |
func debugDescription(_ indentationLevel: Int = 0, includeType: Bool = true) -> String { | |
let indentString = (0..<indentationLevel).reduce("") { tabs, _ in tabs + "\t" } | |
var s: String |
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
// UIViewIBLayoutMarginSupport.swift | |
// Created by Matt McMurry on 5/26/15. | |
import UIKit | |
public extension UIView { | |
@IBInspectable public var leftLayoutMagrin: CGFloat { | |
set { | |
var margins = layoutMargins | |
margins.left = newValue |
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
post_install do |installer| | |
installer.project.targets.each do |target| | |
target.build_configurations.each do |config| | |
config.build_settings['APPLICATION_EXTENSION_API_ONLY'] = 'YES' | |
end | |
end | |
end |
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
UIButton *button1 = [UIButton buttonWithType:UIButtonTypeCustom]; | |
button1.translatesAutoresizingMaskIntoConstraints = NO; | |
button1.backgroundColor = [UIColor greenColor]; | |
[button1 setTitle:@"button1" forState:UIControlStateNormal]; | |
UIButton *button2 = [UIButton buttonWithType:UIButtonTypeCustom]; | |
button2.translatesAutoresizingMaskIntoConstraints = NO; | |
button2.backgroundColor = [UIColor redColor]; | |
[button2 setTitle:@"button2" forState:UIControlStateNormal]; |