Skip to content
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.

Commit

Permalink
v1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
zigzagg16 committed Dec 12, 2017
1 parent 4b953db commit 7451454
Show file tree
Hide file tree
Showing 17 changed files with 631 additions and 641 deletions.
1 change: 1 addition & 0 deletions .swift-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.0
10 changes: 5 additions & 5 deletions CariocaMenu.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "CariocaMenu"
s.version = "1.0"
s.version = "1.1"
s.summary = "The fastest zero-tap iOS menu"
s.description = <<-DESC
A simple, fast, and very accessible menu for your iOS apps.
Expand All @@ -9,10 +9,10 @@ Pod::Spec.new do |s|
s.homepage = "https://github.com/arn00s/cariocamenu"
s.screenshots = "https://raw.githubusercontent.com/arn00s/cariocamenu/master/cariocamenu.gif"
s.license = "MIT"
s.author = { "Arnaud Schloune" => "arnaud.schloune@gmail.com" }
s.social_media_url = "http://twitter.com/arnaud_momo"
s.platform = :ios, "8.0"
s.source = { :git => "https://github.com/arn00s/cariocamenu.git", :tag => "1.0" }
s.author = { "Arnaud Schloune" => "arnaud.schloune@gmail.com" }
s.platform = :ios, "9.0"
s.source = { :git => "https://github.com/arn00s/cariocamenu.git", :tag => "1.1" }
s.source_files = "Classes", "carioca/Library/CariocaMenu.swift"
s.requires_arc = true
s.social_media_url = "http://twitter.com/arnaud_momo"
end
21 changes: 13 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
CariocaMenu
Carioca Menu
===============

[![Cocoapods Compatible](https://img.shields.io/cocoapods/v/CariocaMenu.svg)](https://img.shields.io/cocoapods/v/CariocaMenu.svg)
[![CocoaPods Compatible](https://img.shields.io/cocoapods/v/CariocaMenu.svg)](https://img.shields.io/cocoapods/v/CariocaMenu.svg)
[![Carthage Compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
[![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/sindresorhus/awesome)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](http://makeapullrequest.com)

The fastest zero-tap iOS menu

Expand All @@ -18,13 +20,14 @@ CariocaMenu is a simple, elegant, fast, modern, innovative, ..., navigation menu
- [x] Boomerang mode
- [x] Full AutoLayout
- [x] Easily customisable
- [x] Complete Documentation
- [x] [Complete Documentation](http://arn00s.github.io/cariocamenu/)

## Requirements

- Autolayout
- iOS 8.0+
- Xcode 7.0
- iOS 9.0+
- Xcode 8.0
- Swift 3.0 (Swift 2.3 available in swift_2.3 branch)

## Communication

Expand All @@ -33,6 +36,7 @@ CariocaMenu is a simple, elegant, fast, modern, innovative, ..., navigation menu
- If you **found a bug**, open an issue.
- If you **have a feature request**, open an issue.
- If you **want to contribute**, submit a pull request.
- If you **use the control**, contact me to mention your app on this page.

## Installation

Expand Down Expand Up @@ -114,6 +118,7 @@ menu.boomerang = .VerticalAndHorizontal

## TODO

- Support rotation
- Add a `live tutorial` to indicate users how to get the most of this menu
- Unit tests / UIAutomation Tests
- Check support for Objective-C projects
Expand All @@ -139,12 +144,12 @@ A `Carioca` is someone who lives in Rio de Janeiro. I lived there for two months

## Contact

- LinkedIn ([Arnaud Schloune](https://lu.linkedin.com/in/arnaudschloune))
- Twitter ([@arnaud_momo](https://twitter.com/arnaud_momo))
- [LinkedIn](https://lu.linkedin.com/in/arnaudschloune)
- [twitter](https://twitter.com/arnaud_momo)

### Creator

- [Arnaud Schloune](http://github.com/arn00s) ([@arnaud_momo](https://twitter.com/arnaud_momo))
- [Arnaud Schloune](http://github.com/arn00s)

## License

Expand Down
21 changes: 16 additions & 5 deletions carioca.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -378,11 +378,12 @@
attributes = {
LastSwiftMigration = 0700;
LastSwiftUpdateCheck = 0710;
LastUpgradeCheck = 0700;
LastUpgradeCheck = 0820;
ORGANIZATIONNAME = "Arnaud Schloune";
TargetAttributes = {
FA0210851B638333005693F0 = {
CreatedOnToolsVersion = 6.4;
LastSwiftMigration = 0820;
SystemCapabilities = {
com.apple.Maps.iOS = {
enabled = 1;
Expand All @@ -391,6 +392,7 @@
};
FAAAAA181C09F9C700CB2F14 = {
CreatedOnToolsVersion = 7.1;
LastSwiftMigration = 0820;
};
};
};
Expand Down Expand Up @@ -517,8 +519,10 @@
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
Expand Down Expand Up @@ -565,8 +569,10 @@
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
Expand All @@ -587,6 +593,7 @@
SDKROOT = iphoneos;
SWIFT_INSTALL_OBJC_HEADER = NO;
SWIFT_OBJC_BRIDGING_HEADER = "";
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
TARGETED_DEVICE_FAMILY = "1,2";
VALIDATE_PRODUCT = YES;
};
Expand All @@ -595,11 +602,11 @@
FA0210A61B638333005693F0 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
EMBEDDED_CONTENT_CONTAINS_SWIFT = YES;
INFOPLIST_FILE = carioca/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.cariocamenu;
Expand All @@ -608,32 +615,34 @@
SWIFT_INSTALL_OBJC_HEADER = NO;
SWIFT_OBJC_BRIDGING_HEADER = "carioca/carioca-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 3.0;
};
name = Debug;
};
FA0210A71B638333005693F0 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
EMBEDDED_CONTENT_CONTAINS_SWIFT = YES;
INFOPLIST_FILE = carioca/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.cariocamenu;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "";
SWIFT_INSTALL_OBJC_HEADER = NO;
SWIFT_OBJC_BRIDGING_HEADER = "carioca/carioca-Bridging-Header.h";
SWIFT_VERSION = 3.0;
};
name = Release;
};
FAAAAA231C09F9C700CB2F14 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "";
CURRENT_PROJECT_VERSION = 1;
DEBUG_INFORMATION_FORMAT = dwarf;
DEFINES_MODULE = YES;
Expand All @@ -647,6 +656,7 @@
PRODUCT_BUNDLE_IDENTIFIER = com.driiivin.cariocaframework;
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
SWIFT_VERSION = 3.0;
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
};
Expand All @@ -656,7 +666,7 @@
isa = XCBuildConfiguration;
buildSettings = {
CODE_SIGN_IDENTITY = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "";
CURRENT_PROJECT_VERSION = 1;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
Expand All @@ -669,6 +679,7 @@
PRODUCT_BUNDLE_IDENTIFIER = com.driiivin.cariocaframework;
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
SWIFT_VERSION = 3.0;
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0710"
LastUpgradeVersion = "0820"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
21 changes: 10 additions & 11 deletions carioca/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,49 +13,48 @@ class AppDelegate: UIResponder, UIApplicationDelegate, COSTouchVisualizerWindowD

var window: UIWindow?
// lazy var window: UIWindow? = {
// var customWindow = COSTouchVisualizerWindow(frame: UIScreen.mainScreen().bounds)
// var customWindow = COSTouchVisualizerWindow(frame: UIScreen.main.bounds)
// customWindow.touchVisualizerWindowDelegate = self
//
// customWindow.fillColor = UIColor(red:0.07, green:0.73, blue:0.86, alpha:1)
// customWindow.strokeColor = UIColor.clearColor()
// customWindow.strokeColor = UIColor.clearColor
// customWindow.touchAlpha = 0.4
//
// customWindow.rippleFillColor = UIColor(red:0.98, green:0.68, blue:0.22, alpha:1)
// customWindow.rippleStrokeColor = UIColor.clearColor()
// customWindow.rippleStrokeColor = UIColor.clearColor
// customWindow.rippleAlpha = 0.4
//
// return customWindow
// }()


func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
return true
}

func applicationWillResignActive(application: UIApplication) {
func applicationWillResignActive(_ application: UIApplication) {
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
// Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
}

func applicationDidEnterBackground(application: UIApplication) {
func applicationDidEnterBackground(_ application: UIApplication) {
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
}

func applicationWillEnterForeground(application: UIApplication) {
func applicationWillEnterForeground(_ application: UIApplication) {
// Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
}

func applicationDidBecomeActive(application: UIApplication) {
func applicationDidBecomeActive(_ application: UIApplication) {
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
}

func applicationWillTerminate(application: UIApplication) {
func applicationWillTerminate(_ application: UIApplication) {
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}

func touchVisualizerWindowShouldAlwaysShowFingertip(window: COSTouchVisualizerWindow!) -> Bool {
func touchVisualizerWindowShouldAlwaysShowFingertip(_ window: COSTouchVisualizerWindow!) -> Bool {
return true
}
}

0 comments on commit 7451454

Please sign in to comment.