Skip to content

Commit 4461cfa

Browse files
committed
Cocoa Pods added
1 parent 6c51a06 commit 4461cfa

21 files changed

Lines changed: 1040 additions & 280 deletions

File tree

.DS_Store

-6 KB
Binary file not shown.

.gitignore

Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
reated by https://www.gitignore.io/api/macos,swift,carthage,cocoapods
2+
3+
### Carthage ###
4+
# Carthage
5+
#
6+
# Add this line if you want to avoid checking in source code from Carthage dependencies.
7+
# Carthage/Checkouts
8+
9+
Carthage/Build
10+
11+
### CocoaPods ###
12+
## CocoaPods GitIgnore Template
13+
14+
# CocoaPods - Only use to conserve bandwidth / Save time on Pushing
15+
# - Also handy if you have a lage number of dependant pods
16+
# - AS PER https://guides.cocoapods.org/using/using-cocoapods.html NEVER IGONRE THE LOCK FILE
17+
Pods/
18+
19+
### macOS ###
20+
*.DS_Store
21+
.AppleDouble
22+
.LSOverride
23+
24+
# Icon must end with two \r
25+
Icon
26+
27+
# Thumbnails
28+
._*
29+
30+
# Files that might appear in the root of a volume
31+
.DocumentRevisions-V100
32+
.fseventsd
33+
.Spotlight-V100
34+
.TemporaryItems
35+
.Trashes
36+
.VolumeIcon.icns
37+
.com.apple.timemachine.donotpresent
38+
39+
# Directories potentially created on remote AFP share
40+
.AppleDB
41+
.AppleDesktop
42+
Network Trash Folder
43+
Temporary Items
44+
.apdisk
45+
46+
### Swift ###
47+
# Xcode
48+
#
49+
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
50+
51+
## Build generated
52+
build/
53+
DerivedData/
54+
55+
## Various settings
56+
*.pbxuser
57+
!default.pbxuser
58+
*.mode1v3
59+
!default.mode1v3
60+
*.mode2v3
61+
!default.mode2v3
62+
*.perspectivev3
63+
!default.perspectivev3
64+
xcuserdata/
65+
66+
## Other
67+
*.moved-aside
68+
*.xccheckout
69+
*.xcscmblueprint
70+
71+
## Obj-C/Swift specific
72+
*.hmap
73+
*.ipa
74+
*.dSYM.zip
75+
*.dSYM
76+
77+
## Playgrounds
78+
timeline.xctimeline
79+
playground.xcworkspace
80+
81+
# Swift Package Manager
82+
#
83+
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
84+
# Packages/
85+
# Package.pins
86+
.build/
87+
88+
# CocoaPods - Refactored to standalone file
89+
90+
# Carthage - Refactored to standalone file
91+
92+
# fastlane
93+
#
94+
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
95+
# screenshots whenever they are needed.
96+
# For more information about the recommended setup visit:
97+
# https://docs.fastlane.tools/best-practices/source-control/#source-control
98+
99+
fastlane/report.xml
100+
fastlane/Preview.html
101+
fastlane/screenshots
102+
fastlane/test_output
103+
104+
### Swift.Carthage Stack ###
105+
# Carthage
106+
#
107+
# Add this line if you want to avoid checking in source code from Carthage dependencies.
108+
# Carthage/Checkouts
109+
110+
111+
### Swift.CocoaPods Stack ###
112+
## CocoaPods GitIgnore Template
113+
114+
# CocoaPods - Only use to conserve bandwidth / Save time on Pushing
115+
# - Also handy if you have a lage number of dependant pods
116+
# - AS PER https://guides.cocoapods.org/using/using-cocoapods.html NEVER IGONRE THE LOCK FILE
117+
118+
# End of https://www.gitignore.io/api/macos,swift,carthage,cocoapods

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright © 2017 Yalantis
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

SMFDemo/.DS_Store

-6 KB
Binary file not shown.

SMFDemo/SMFDemo.xcodeproj/xcuserdata/Morais.xcuserdatad/xcschemes/SMFDemo.xcscheme

Lines changed: 0 additions & 111 deletions
This file was deleted.

SMFDemo/SMFDemo.xcodeproj/xcuserdata/Morais.xcuserdatad/xcschemes/xcschememanagement.plist

Lines changed: 0 additions & 32 deletions
This file was deleted.

SMFDemo/SMFDemo.xcodeproj/xcuserdata/andre.xcuserdatad/xcschemes/xcschememanagement.plist

Lines changed: 0 additions & 32 deletions
This file was deleted.

SwiftMaskField/StringExtensions.swift

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// GitHub: https://github.com/moraisandre/SwiftMaskText
44
//
55
// Created by Andre Morais on 3/11/16.
6+
// Translated to Swift 3 by: André Santana Ferreira on 31/5/17
67
// Copyright © 2016 Andre Morais. All rights reserved.
78
// Website: http://www.andremorais.com.br
89
//
@@ -12,16 +13,16 @@ import UIKit
1213
extension String {
1314

1415
subscript (i: Int) -> Character {
15-
return self[self.startIndex.advancedBy(i)]
16+
return self[self.characters.index(self.startIndex, offsetBy: i)]
1617
}
1718

1819
subscript (i: Int) -> String {
1920
return String(self[i] as Character)
2021
}
2122

2223
subscript (r: Range<Int>) -> String {
23-
let start = startIndex.advancedBy(r.startIndex)
24-
let end = start.advancedBy(r.endIndex - r.startIndex)
25-
return self[Range(start: start, end: end)]
24+
let start = characters.index(startIndex, offsetBy: r.lowerBound)
25+
let end = characters.index(start, offsetBy: r.upperBound - r.lowerBound)
26+
return self[(start ..< end)]
2627
}
27-
}
28+
}

0 commit comments

Comments
 (0)