We would like to draw a shadow, depends on the z-dimension hierarchy, first It needs to render to elements before the shadow rendering. That means, It needs to wait fake elements for drawing the render, after that the elements draw itself. This is called Offscreen pass
This file contains hidden or 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
find -E . -regex '^\./[^(\.build|Pods)].+\.swift$' | tr \\n \\0 | xargs -0 wc -l | sort -r |
This file contains hidden or 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
extension UIImage { | |
func rotateCameraImageToProperOrientation(maxResolution: CGFloat) -> UIImage { | |
let imgRef: CGImage = cgImage! | |
let width: CGFloat = CGFloat(imgRef.width) | |
let height: CGFloat = CGFloat(imgRef.height) | |
var bounds: CGRect = CGRect(x: 0, y: 0, width: width, height: height) | |
var scaleRatio: CGFloat = 1 | |
if width > maxResolution || height > maxResolution { |
This file contains hidden or 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
// | |
// FadeScrollView.swift | |
// | |
// Created by Luís Machado on 23/06/2017. | |
// Copyright © 2017 Luis Machado. All rights reserved. | |
// | |
import UIKit | |
class FadeScrollView: UIScrollView, UIScrollViewDelegate { |
This file contains hidden or 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
lipo WebRTC.framework/WebRTC -thin arm64 -output WebRTC.framework/WebRTC |
This file contains hidden or 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
https://ss64.com/osx/lipo.html | |
lipo | |
Create or operate on a universal file: convert a universal binary to a single architecture file, or vice versa. | |
Syntax | |
lipo [input_file]... [-arch arch_type input_file]... [-arch_blank arch_type]... | |
{ -info | -detailed_info } | |
[-output output_file] Operation |
This file contains hidden or 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
# Find the current marketing version | |
OLD_VERSION=$(agvtool what-marketing-version -terse1) | |
# Get the current marketing version values | |
##replace . with space so can split into an array | |
VERSION_BITS=(${OLD_VERSION//./ }) | |
##get tag number parts for version and build numbers | |
VNUM1=${VERSION_BITS[0]} | |
VNUM2=${VERSION_BITS[1]} |
This file contains hidden or 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
# Find the current marketing version | |
OLD_VERSION=$(agvtool what-marketing-version -terse1) | |
# Get the current marketing version values | |
##replace . with space so can split into an array | |
VERSION_BITS=(${OLD_VERSION//./ }) | |
##get tag number parts for version and build numbers |
This file contains hidden or 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
#!/bin/sh | |
# | |
# aerobuild.sh | |
# | |
# What does this do? | |
# ================== | |
# - Bumps build numbers in your project using agvtool | |
# - Builds your app and packages it for testing/ad-hoc distribution | |
# - Commits build number changes to git |
This file contains hidden or 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
#!/bin/sh | |
# | |
# aerobuild.sh | |
# | |
# What does this do? | |
# ================== | |
# - Bumps build numbers in your project using agvtool | |
# - Builds your app and packages it for testing/ad-hoc distribution | |
# - Commits build number changes to git |
NewerOlder