Skip to content

Instantly share code, notes, and snippets.

@arpitdsoni
arpitdsoni / add_lprojs.rb
Last active January 6, 2019 02:03
Adding lproj folder reference in xcodeproj
require 'xcodeproj'
require 'dotenv'
# Dotenv.load('.env.lprojs')
localizations = ENV['LOCALIZATIONS'].split(',')
puts "Localizations: " + localizations.inspect
project = Xcodeproj::Project.open('LocalizationPrototype.xcodeproj')
target = project.targets.first
parent_group = project.groups.first
@arpitdsoni
arpitdsoni / WaitView.swift
Created August 20, 2017 04:13
Playing with custom UIView
// WaitView.swift
//
// Created by Arpit Soni on 8/20/17.
// Copyright © 2017 Arpit Soni. All rights reserved.
import UIKit
import PlaygroundSupport
let viewFrame = CGRect(x: 0, y: 0, width: 500, height: 500)
let view = UIView(frame: viewFrame)