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
// MARK: - SceneDelegate | |
class SceneDelegate: UIResponder, UIWindowSceneDelegate { | |
var window: UIWindow? | |
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { | |
let navigationController = UINavigationController(navigationBarClass: NavigationBar.self, toolbarClass: nil) | |
(navigationController.navigationBar as! NavigationBar).preferredHeight = 88 | |
navigationController.setViewControllers([ViewController()], animated: false) | |
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 SwiftSyntax | |
// swift-syntax v509.0.0-swift-DEVELOPMENT-SNAPSHOT-2023-08-15-a | |
extension SyntaxProtocol { | |
var token: TokenSyntax? { self.as(TokenSyntax.self) } | |
var accessorBlock: AccessorBlockSyntax? { self.as(AccessorBlockSyntax.self) } | |
var accessorDeclList: AccessorDeclListSyntax? { self.as(AccessorDeclListSyntax.self) } | |
var accessorDecl: AccessorDeclSyntax? { self.as(AccessorDeclSyntax.self) } | |
var accessorEffectSpecifiers: AccessorEffectSpecifiersSyntax? { self.as(AccessorEffectSpecifiersSyntax.self) } | |
var accessorParameters: AccessorParametersSyntax? { self.as(AccessorParametersSyntax.self) } |
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
// | |
// FeatureVoter.swift | |
// Mutaclip | |
// | |
// Created by Tyler Stillwater on 5/10/23. | |
// | |
// Custom voter implementation for: https://github.com/AvdLee/Roadmap | |
// Note: will not work until this PR is merged: https://github.com/AvdLee/Roadmap/pull/71 | |
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
// | |
// Created by https://quickplan.app on 2020/11/8. | |
// | |
import SwiftUI | |
/// Control if allow to dismiss the sheet by the user actions | |
/// - Drag down on the sheet on iPhone and iPad | |
/// - Tap outside the sheet on iPad | |
/// No impact to dismiss programatically (by calling "presentationMode.wrappedValue.dismiss()") |
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
activate application "SF Symbols" | |
tell application "System Events" | |
tell process "SF Symbols" | |
-- Click the “list” radio button. | |
click radio button 2 of radio group 1 of group 3 of toolbar 1 of window 0 | |
tell outline 1 of scroll area 1 of splitter group 1 of window 0 | |
select (row 1 where value of static text 1 of UI element 1 starts with "All") |
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
// | |
// DeviceConstants.swift | |
// SampleApp | |
// | |
// Created by RoLY roLLs on 12/31/19. | |
// Copyright © 2019 RoLYroLLs Enterprises, LLC. All rights reserved. | |
// | |
/// Taken from https://developer.apple.com/documentation/swiftui/securefield/3289399-previewdevice |
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
--- | |
layout: null | |
permalink: /feed.xml | |
--- | |
{% assign feed_url = page.url | absolute_url %}<?xml version="1.0" encoding="utf-8"?> | |
<feed xmlns="http://www.w3.org/2005/Atom"> | |
<title>{{ site.title }}</title> | |
<subtitle>By {{ site.author.name }}</subtitle> | |
<link rel="alternate" type="text/html" href="{{ site.url }}" /> | |
<link rel="self" type="application/atom+xml" href="{{ feed_url }}" /> |
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 sh | |
import Foundation | |
import PromiseKit // @mxcl ~> 6.5 | |
import Swifter // @mattdonnelly == b27a89 | |
let swifter = Swifter( | |
consumerKey: "FILL", | |
consumerSecret: "ME", | |
oauthToken: "IN", | |
oauthTokenSecret: "https://developer.twitter.com/en/docs/basics/apps/overview.html" |
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
defaults write com.apple.iphonesimulator AllowFullscreenMode -bool YES |
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/env bash | |
PRODUCTS_PATH=$1 | |
PROJECT_NAME=$2 | |
VERSION=$3 | |
if (( $# != 3 )); then | |
echo "Wrong usage. Please pass the correct arguments. | |
>> ./bind-frameworks PRODUCTS_PATH PROJECT_NAME VERSION" | |
else |
NewerOlder