Skip to content

Instantly share code, notes, and snippets.

View NQuinn27's full-sized avatar

Niall Quinn NQuinn27

  • Dublin, Ireland
View GitHub Profile
for family in UIFont.familyNames {
print("\(family)")
for name in UIFont.fontNames(forFamilyName: family) {
print(" \(name)")
}
}
@NQuinn27
NQuinn27 / Verizon Connect iOS Coding Guidelines
Created August 22, 2018 09:05
Verizon Connect iOS Coding Guidelines [DRAFT]
# Verizon Connect iOS Coding Guidelines
## Language
- All new features should be developed in Swift.
- Objective-C code should be refactored to Swift where sensible.
- Work with Build Engineers to keep build machine XCode versions current to unify language versions (especially important when using shared modules), and access to the latest language features.
- Objective-C interop should be considered for all shared module interfaces and deeper types which can be accessed using the public interface.
## Naming
- Names should be meaningful.
@NQuinn27
NQuinn27 / Upgrade_Popdeem_SDK.md
Created July 2, 2018 19:58
Markdown for the Upgrade PDF

Migrate to latest Popdeem iOS SDK

The latest version of the Popdeem SDK is 1.1.21. Please update cocoapods.

info.plist change

In info.plist, add the following: twitterkit-144pFFdkYjC9p4J61YHubqKux as the first item in the URL Schemes like so:

AppDelegate Change

Change the URL handling method at the end of app delegate to the following:

#!/usr/bin/env node
module.exports = function(context) {
var fs = context.requireCordovaModule('fs'),
path = context.requireCordovaModule('path');
var platformRoot = path.join(context.opts.projectRoot, 'platforms/android');
var manifestFile = path.join(platformRoot, 'AndroidManifest.xml');
#!/usr/bin/env node
/** This hook updates platform configuration files based on preferences and config-file data defined in config.xml.
Currently only the AndroidManifest.xml and IOS *-Info.plist file are supported.
See http://stackoverflow.com/questions/28198983/ionic-cordova-add-intent-filter-using-config-xml
Preferences:
1. Preferences defined outside of the platform element will apply to all platforms
2. Preferences defined inside a platform element will apply only to the specified platform
{
"popdeem" : {
"colors" : {
"primaryAppColor" : "#FAF8FA",
"secondaryAppColor" : "#D76878",
"primaryInverseColor" : "#D76878",
"viewBackgroundColor" : "#FDFDFD",
"primaryFontColor" : "#000000",
"secondaryFontColor" : "#424242",
"tableViewCellBackgroundColor" : "#FAF8FA",
@NQuinn27
NQuinn27 / Localizable.strings
Last active August 14, 2017 19:39
Popdeem Strings (Exhaustive)
//Twitter Connect Screen
"popdeem.twitter.connect.read.labelText" ="Connect your Twitter account to claim Twitter Rewards.";
"popdeem.twitter.connect.read.actionButtonTitle" = "Continue";
"popdeem.twitter.loading.labelText" ="Connecting Twitter Account.";
"popdeem.twitter.loading.actionButtonTitle" = "Connecting...";
//Facebook Connect Screen
"popdeem.common.facebookLoginCancelledTitle" ="Login Cancelled.";
"popdeem.common.facebookLoginCancelledBody" ="You must log in with Facebook to avail of social rewards.";
"popdeem.facebook.connect.read.labelText" ="You must log in using Facebook to claim this reward. We will never post to Facebook without your explicit permission.";
{
"popdeem" : {
"colors" : {
"primaryAppColor" : "#0F7960",
"secondaryAppColor" : "#FFEB35",
"primaryInverseColor" : "#FFEB35",
"viewBackgroundColor" : "#EBEBF2",
"primaryFontColor" : "#000000",
"secondaryFontColor" : "#424242",
"tableViewCellBackgroundColor" : "#FFFFFF",
@NQuinn27
NQuinn27 / Localizable.strings
Last active May 12, 2017 13:52
Heine Brothers iOS Strings
"popdeem.home.header.titleText" = "Share your Heine Brothers experience on social networks to earn more rewards.";
"popdeem.home.title" = "Social";
"popdeem.sociallogin.body" = "Connect and interact with Heine Brothers Coffee on social networks to earn bonus rewards.";
<string name="pd_home_banner_text">Share your Heine Brothers experience on social networks to earn more rewards.</string>
<string name="pd_wallet_title">History</string>