Link: https://www.buddybuild.com/blog/optimizing-your-swift-codebase-with-attributes
Indicates the avalibility of a method of a platform or version number
@available(iOS 10.0, macOS 10.12)
@available(iOS 10.0, macOS 10.12, *)
CALayer* animationLayer=achievementNewsfeed.view.layer; | |
animationLayer.anchorPoint = CGPointMake(1.0, 0.5); | |
CATransform3D transform = CATransform3DMakeRotation(-M_PI / 1.1, 0.0, 1.0, 0.0); | |
transform.m34 = 1.0f / 2500.0f; | |
animationLayer.transform=transform; | |
float currentAngle,startFlipAngle=-M_PI; | |
float endFlipAngle=0; | |
float progress=1.0; |
Link: https://www.buddybuild.com/blog/optimizing-your-swift-codebase-with-attributes
Indicates the avalibility of a method of a platform or version number
@available(iOS 10.0, macOS 10.12)
@available(iOS 10.0, macOS 10.12, *)
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
#!/bin/sh | |
# Setup_Facebook_API_Keys.sh | |
# iOSConsumerApp | |
# | |
# Created by Muhammad Tanveer on 9/17/15. | |
# Copyright (c) 2015 iCarAsia. All rights reserved. | |
path_to_info_plist_file="$TARGET_BUILD_DIR/${PRODUCT_NAME}.app/Info.plist" |
#!/bin/sh | |
# Setup_Crashlytics_API_Keys.sh | |
# iOSConsumerApp | |
# | |
# Created by Muhammad Tanveer on 9/17/15. | |
# Copyright (c) 2015 iCarAsia. All rights reserved. | |
path_to_info_plist_file="$TARGET_BUILD_DIR/${PRODUCT_NAME}.app/Info.plist" |
#!/bin/sh | |
# Run_Crashlytics.sh | |
# iOSConsumerApp | |
# | |
# Created by Muhammad Tanveer on 9/17/15. | |
# Copyright (c) 2015 iCarAsia. All rights reserved. | |
# Import keys and secrets from a file |
#!/bin/sh | |
# Crashlytics_keys.sh | |
# iOSConsumerApp | |
# | |
# Created by Muhammad Tanveer on 9/17/15. | |
# Copyright (c) 2015 iCarAsia. All rights reserved. | |
the_crashlytics_production_api_key="XXXXXXXXXXXXXXXXXXXXXX" | |
the_crashlytics_production_build_secret="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" |
#!/bin/sh | |
# Setup_GoogleAnalytics_API_Keys.sh | |
# iOSConsumerApp | |
# | |
# Created by Muhammad Tanveer on 9/17/15. | |
# Copyright (c) 2015 iCarAsia. All rights reserved. | |
#!/bin/sh | |
# GoogleAnalytics_keys.sh | |
# iOSConsumerApp | |
# | |
# Created by Muhammad Tanveer on 9/17/15. | |
# Copyright (c) 2015 iCarAsia. All rights reserved. | |
if [ ${TARGET_NAME} = "iOSConsumerApp" ]; then |