Skip to content

Instantly share code, notes, and snippets.

View raphaelguye's full-sized avatar

Raphael Guye raphaelguye

View GitHub Profile
@raphaelguye
raphaelguye / AppDelegate.swift
Last active December 16, 2021 12:50
AppDelegate for Citrix MAM sdk
import OSLog
import UIKit
@main
class AppDelegate: UIResponder, UIApplicationDelegate, CTXMAMCoreSdkDelegate {
// MARK: Internal
func application(
_ application: UIApplication,
@raphaelguye
raphaelguye / Empty Swift File.swift
Created September 30, 2021 13:56
Template for Swift File
import Foundation
@raphaelguye
raphaelguye / SwiftLint.sh
Last active September 29, 2021 14:02
Xcode Script - SwiftLint
if which swiftlint >/dev/null; then
  swiftlint # for autocorrect: swiftlint autocorrect && swiftlint
else
  echo "warning: SwiftLint not installed"
fi
@raphaelguye
raphaelguye / SwiftFormat.sh
Last active September 29, 2021 14:03
Xcode Script - SwiftFormat
if which swiftformat >/dev/null; then
  swiftformat --lint . # for autocorrect: swiftformat .
else
  echo "warning: SwiftFormat not installed"
fi
@raphaelguye
raphaelguye / XcodeFormatting.sh
Last active May 10, 2024 15:36
Xcode Script - XcodeFormatting
set -e
defaults write com.apple.dt.Xcode DVTTextEditorTrimTrailingWhitespace -bool YES
defaults write com.apple.dt.Xcode DVTTextEditorTrimWhitespaceOnlyLines -bool YES
defaults write com.apple.dt.Xcode DVTTextIndentTabWidth -int 2
defaults write com.apple.dt.Xcode DVTTextIndentWidth -int 2
defaults write com.apple.dt.Xcode DVTTextPageGuideLocation -int 100
@raphaelguye
raphaelguye / MyView.swift
Last active September 29, 2021 14:04
Swift - Not allowed to use two Properties Wrapper for one variable
// Not working
@ObservedObject @Injected var vm: ViewModel