├── .github ├── ISSUE_TEMPLATE │ ├── bug_report.md │ ├── feature_request.md │ └── question.md └── stale.yml ├── .gitignore ├── .swift-version ├── .travis.yml ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── Example ├── GetTTFFontName.py ├── LGButton.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ ├── xcshareddata │ │ └── xcschemes │ │ │ └── LGButton-Example.xcscheme │ └── xcuserdata │ │ └── Renzo.xcuserdatad │ │ └── xcschemes │ │ └── xcschememanagement.plist ├── LGButton.xcworkspace │ ├── contents.xcworkspacedata │ └── xcshareddata │ │ └── IDEWorkspaceChecks.plist ├── LGButton │ ├── AppDelegate.swift │ ├── Assets.xcassets │ │ ├── AppIcon.appiconset │ │ │ ├── Contents.json │ │ │ ├── Icon-App-20x20@1x.png │ │ │ ├── Icon-App-20x20@2x.png │ │ │ ├── Icon-App-20x20@3x.png │ │ │ ├── Icon-App-29x29@1x.png │ │ │ ├── Icon-App-29x29@2x.png │ │ │ ├── Icon-App-29x29@3x.png │ │ │ ├── Icon-App-40x40@1x.png │ │ │ ├── Icon-App-40x40@2x.png │ │ │ ├── Icon-App-40x40@3x.png │ │ │ ├── Icon-App-57x57@1x.png │ │ │ ├── Icon-App-57x57@2x.png │ │ │ ├── Icon-App-60x60@1x.png │ │ │ ├── Icon-App-60x60@2x.png │ │ │ ├── Icon-App-60x60@3x.png │ │ │ ├── Icon-App-72x72@1x.png │ │ │ ├── Icon-App-72x72@2x.png │ │ │ ├── Icon-App-76x76@1x.png │ │ │ ├── Icon-App-76x76@2x.png │ │ │ ├── Icon-App-76x76@3x.png │ │ │ ├── Icon-App-83.5x83.5@2x.png │ │ │ ├── Icon-Small-50x50@1x.png │ │ │ └── Icon-Small-50x50@2x.png │ │ ├── Contents.json │ │ └── home_icon.imageset │ │ │ ├── Contents.json │ │ │ ├── home_icon.png │ │ │ ├── home_icon@2x.png │ │ │ └── home_icon@3x.png │ ├── Base.lproj │ │ ├── LaunchScreen.storyboard │ │ └── Main.storyboard │ ├── Info.plist │ └── ViewController.swift ├── Podfile ├── Podfile.lock ├── Pods │ ├── Local Podspecs │ │ └── LGButton.podspec.json │ ├── Manifest.lock │ ├── Pods.xcodeproj │ │ ├── project.pbxproj │ │ └── xcuserdata │ │ │ └── Renzo.xcuserdatad │ │ │ └── xcschemes │ │ │ ├── LGButton.xcscheme │ │ │ ├── Pods-LGButton_Example.xcscheme │ │ │ └── xcschememanagement.plist │ └── Target Support Files │ │ ├── LGButton │ │ ├── Info.plist │ │ ├── LGButton-dummy.m │ │ ├── LGButton-prefix.pch │ │ ├── LGButton-umbrella.h │ │ ├── LGButton.modulemap │ │ └── LGButton.xcconfig │ │ └── Pods-LGButton_Example │ │ ├── Info.plist │ │ ├── Pods-LGButton_Example-acknowledgements.markdown │ │ ├── Pods-LGButton_Example-acknowledgements.plist │ │ ├── Pods-LGButton_Example-dummy.m │ │ ├── Pods-LGButton_Example-frameworks.sh │ │ ├── Pods-LGButton_Example-resources.sh │ │ ├── Pods-LGButton_Example-umbrella.h │ │ ├── Pods-LGButton_Example.debug.xcconfig │ │ ├── Pods-LGButton_Example.modulemap │ │ └── Pods-LGButton_Example.release.xcconfig └── build │ └── Pods.build │ └── Debug-iphoneos │ ├── LGButton.build │ ├── DerivedSources │ │ └── LGButton_vers.c │ ├── LGButton-all-non-framework-target-headers.hmap │ ├── LGButton-all-target-headers.hmap │ ├── LGButton-generated-files.hmap │ ├── LGButton-own-target-headers.hmap │ ├── LGButton-project-headers.hmap │ ├── LGButton.hmap │ ├── Objects-normal │ │ ├── arm64 │ │ │ ├── LGButton-OutputFileMap.json │ │ │ └── LGButton.LinkFileList │ │ └── armv7 │ │ │ ├── LGButton-OutputFileMap.json │ │ │ └── LGButton.LinkFileList │ ├── dgph │ ├── module.modulemap │ ├── swift-overrides.hmap │ ├── unextended-module-overlay.yaml │ └── unextended-module.modulemap │ ├── Pods-LGButton_Example.build │ ├── DerivedSources │ │ └── Pods_LGButton_Example_vers.c │ ├── Objects-normal │ │ ├── arm64 │ │ │ └── Pods_LGButton_Example.LinkFileList │ │ └── armv7 │ │ │ └── Pods_LGButton_Example.LinkFileList │ ├── Pods_LGButton_Example-all-non-framework-target-headers.hmap │ ├── Pods_LGButton_Example-all-target-headers.hmap │ ├── Pods_LGButton_Example-generated-files.hmap │ ├── Pods_LGButton_Example-own-target-headers.hmap │ ├── Pods_LGButton_Example-project-headers.hmap │ ├── Pods_LGButton_Example.hmap │ ├── dgph │ └── module.modulemap │ └── Pods-LGButton_Tests.build │ ├── DerivedSources │ └── Pods_LGButton_Tests_vers.c │ ├── Objects-normal │ ├── arm64 │ │ └── Pods_LGButton_Tests.LinkFileList │ └── armv7 │ │ └── Pods_LGButton_Tests.LinkFileList │ ├── Pods_LGButton_Tests-all-non-framework-target-headers.hmap │ ├── Pods_LGButton_Tests-all-target-headers.hmap │ ├── Pods_LGButton_Tests-generated-files.hmap │ ├── Pods_LGButton_Tests-own-target-headers.hmap │ ├── Pods_LGButton_Tests-project-headers.hmap │ ├── Pods_LGButton_Tests.hmap │ ├── dgph │ └── module.modulemap ├── LGButton.podspec ├── LGButton ├── .gitignore ├── .travis.yml ├── Assets │ └── .gitkeep ├── Classes │ ├── .gitkeep │ ├── LGButton.swift │ └── SwiftIconFont │ │ ├── FontAwesome.swift │ │ ├── FontIon.swift │ │ ├── FontLoader.swift │ │ ├── FontMap.swift │ │ ├── FontMaterial.swift │ │ ├── FontOct.swift │ │ ├── FontOpenic.swift │ │ ├── FontThemify.swift │ │ ├── GenSwiftEnum.py │ │ ├── LICENSE │ │ ├── SwiftIconFont.swift │ │ └── SwiftIconLabel.swift ├── Info.plist ├── LGButton.h └── Resources │ ├── FontAwesome.ttf │ ├── Ionicons.ttf │ ├── LGButton.xib │ ├── MaterialIcons-Regular.ttf │ ├── map-icons.ttf │ ├── octicons.ttf │ ├── open-iconic.ttf │ └── themify.ttf ├── LICENSE.md ├── README.md ├── _config.yml └── media ├── async_demo.gif ├── class_name.png ├── header_btn.png ├── preview_btn.png ├── properties_1.jpg └── properties_2.jpg /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Create a report to help us improve 4 | title: '' 5 | labels: bug 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Describe the bug** 11 | A clear and concise description of what the bug is. 12 | 13 | **To Reproduce** 14 | Steps to reproduce the behavior: 15 | 1. Go to '...' 16 | 2. Click on '....' 17 | 3. Scroll down to '....' 18 | 4. See error 19 | 20 | **Expected behavior** 21 | A clear and concise description of what you expected to happen. 22 | 23 | **Screenshots** 24 | If applicable, add screenshots to help explain your problem. 25 | 26 | **Desktop (please complete the following information):** 27 | - OS: [e.g. iOS] 28 | - Browser [e.g. chrome, safari] 29 | - Version [e.g. 22] 30 | 31 | **Smartphone (please complete the following information):** 32 | - Device: [e.g. iPhone6] 33 | - OS: [e.g. iOS8.1] 34 | - Browser [e.g. stock browser, safari] 35 | - Version [e.g. 22] 36 | 37 | **Additional context** 38 | Add any other context about the problem here. 39 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature request 3 | about: Suggest an idea for this project 4 | title: '' 5 | labels: enhancement 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Is your feature request related to a problem? Please describe.** 11 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 12 | 13 | **Describe the solution you'd like** 14 | A clear and concise description of what you want to happen. 15 | 16 | **Describe alternatives you've considered** 17 | A clear and concise description of any alternative solutions or features you've considered. 18 | 19 | **Additional context** 20 | Add any other context or screenshots about the feature request here. 21 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/question.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Question 3 | about: Ask a question regarding this project 4 | title: '' 5 | labels: question 6 | assignees: '' 7 | 8 | --- 9 | 10 | Add here your question 11 | -------------------------------------------------------------------------------- /.github/stale.yml: -------------------------------------------------------------------------------- 1 | # Number of days of inactivity before an issue becomes stale 2 | daysUntilStale: 60 3 | # Number of days of inactivity before a stale issue is closed 4 | daysUntilClose: 7 5 | # Label to use when marking an issue as stale 6 | staleLabel: stale 7 | # Comment to post when marking an issue as stale. Set to `false` to disable 8 | markComment: > 9 | This issue has been automatically marked as stale because it has not had 10 | recent activity. It will be closed if no further activity occurs in 7 days. Thank you 11 | for your contributions. 12 | # Comment to post when closing a stale issue. Set to `false` to disable 13 | closeComment: false 14 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ## Build generated 2 | build/ 3 | DerivedData/ 4 | 5 | ## Various settings 6 | *.pbxuser 7 | !default.pbxuser 8 | xcuserdata/ 9 | 10 | ## Other 11 | *.moved-aside 12 | *.xccheckout 13 | *.xcscmblueprint -------------------------------------------------------------------------------- /.swift-version: -------------------------------------------------------------------------------- 1 | 4.2 2 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | osx_image: xcode10 2 | language: objective-c 3 | 4 | before_script: 5 | - cd Example 6 | - pod install 7 | 8 | script: 9 | - xcodebuild clean build -sdk iphonesimulator12.0 -workspace LGButton.xcworkspace -scheme LGButton-Example CODE_SIGNING_REQUIRED=NO 10 | 11 | branches: 12 | only: 13 | - master 14 | - develop 15 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Contributor Covenant Code of Conduct 2 | 3 | ## Our Pledge 4 | 5 | In the interest of fostering an open and welcoming environment, we as 6 | contributors and maintainers pledge to making participation in our project and 7 | our community a harassment-free experience for everyone, regardless of age, body 8 | size, disability, ethnicity, sex characteristics, gender identity and expression, 9 | level of experience, education, socio-economic status, nationality, personal 10 | appearance, race, religion, or sexual identity and orientation. 11 | 12 | ## Our Standards 13 | 14 | Examples of behavior that contributes to creating a positive environment 15 | include: 16 | 17 | * Using welcoming and inclusive language 18 | * Being respectful of differing viewpoints and experiences 19 | * Gracefully accepting constructive criticism 20 | * Focusing on what is best for the community 21 | * Showing empathy towards other community members 22 | 23 | Examples of unacceptable behavior by participants include: 24 | 25 | * The use of sexualized language or imagery and unwelcome sexual attention or 26 | advances 27 | * Trolling, insulting/derogatory comments, and personal or political attacks 28 | * Public or private harassment 29 | * Publishing others' private information, such as a physical or electronic 30 | address, without explicit permission 31 | * Other conduct which could reasonably be considered inappropriate in a 32 | professional setting 33 | 34 | ## Our Responsibilities 35 | 36 | Project maintainers are responsible for clarifying the standards of acceptable 37 | behavior and are expected to take appropriate and fair corrective action in 38 | response to any instances of unacceptable behavior. 39 | 40 | Project maintainers have the right and responsibility to remove, edit, or 41 | reject comments, commits, code, wiki edits, issues, and other contributions 42 | that are not aligned to this Code of Conduct, or to ban temporarily or 43 | permanently any contributor for other behaviors that they deem inappropriate, 44 | threatening, offensive, or harmful. 45 | 46 | ## Scope 47 | 48 | This Code of Conduct applies both within project spaces and in public spaces 49 | when an individual is representing the project or its community. Examples of 50 | representing a project or community include using an official project e-mail 51 | address, posting via an official social media account, or acting as an appointed 52 | representative at an online or offline event. Representation of a project may be 53 | further defined and clarified by project maintainers. 54 | 55 | ## Enforcement 56 | 57 | Instances of abusive, harassing, or otherwise unacceptable behavior may be 58 | reported by contacting the project team at lorenzo.gapp@gmail.com. All 59 | complaints will be reviewed and investigated and will result in a response that 60 | is deemed necessary and appropriate to the circumstances. The project team is 61 | obligated to maintain confidentiality with regard to the reporter of an incident. 62 | Further details of specific enforcement policies may be posted separately. 63 | 64 | Project maintainers who do not follow or enforce the Code of Conduct in good 65 | faith may face temporary or permanent repercussions as determined by other 66 | members of the project's leadership. 67 | 68 | ## Attribution 69 | 70 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, 71 | available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html 72 | 73 | [homepage]: https://www.contributor-covenant.org 74 | 75 | For answers to common questions about this code of conduct, see 76 | https://www.contributor-covenant.org/faq 77 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | Contributing 2 | ============ 3 | 4 | First off, thanks for taking the time to contribute! 5 | 6 | If you would like to contribute code to this repository you can do so through GitHub by 7 | forking the repository and sending a pull request or opening an issue. 8 | 9 | When submitting code, please make every effort to follow existing conventions 10 | and style in order to keep the code as readable as possible. Please also make 11 | sure your code compiles, passes the tests and the checkstyle configured for this repository. 12 | 13 | 14 | Some tips that will help you to contribute to this repository: 15 | 16 | * Write clean code and test it. 17 | * Follow the repository code style. 18 | * Write good commit messages. 19 | * Do not send pull requests without checking if the project build is OK in Travis-CI. 20 | * Review if your changes affects the repository documentation and update it. 21 | * Describe the PR content and don't hesitate to add comments to explain us why you've added or changed something. 22 | 23 | Code of conduct 24 | --------------- 25 | 26 | As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities. 27 | 28 | We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, or religion. 29 | 30 | Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct. 31 | 32 | Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team. 33 | 34 | This code of conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. 35 | 36 | Instances of abusive, harassing, or otherwise unacceptable behavior can be reported by emailing hello@karumi.com. 37 | 38 | This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org/version/1/3/0/), version 1.3.0, available at [http://contributor-covenant.org/version/1/3/0/](http://contributor-covenant.org/version/1/3/0/). 39 | -------------------------------------------------------------------------------- /Example/GetTTFFontName.py: -------------------------------------------------------------------------------- 1 | """ 2 | From 3 | https://github.com/gddc/ttfquery/blob/master/ttfquery/describe.py 4 | and 5 | http://www.starrhorne.com/2012/01/18/how-to-extract-font-names-from-ttf-files-using-python-and-our-old-friend-the-command-line.html 6 | ported to Python 3 7 | """ 8 | import os 9 | from fontTools import ttLib 10 | 11 | FONT_SPECIFIER_NAME_ID = 4 12 | FONT_SPECIFIER_FAMILY_ID = 1 13 | def shortName( font ): 14 | """Get the short name from the font's names table""" 15 | name = "" 16 | family = "" 17 | for record in font['name'].names: 18 | if b'\x00' in record.string: 19 | name_str = record.string.decode('utf-16-be') 20 | else: 21 | name_str = record.string.decode('utf-8') 22 | if record.nameID == FONT_SPECIFIER_NAME_ID and not name: 23 | name = name_str 24 | elif record.nameID == FONT_SPECIFIER_FAMILY_ID and not family: 25 | family = name_str 26 | if name and family: break 27 | return name, family 28 | 29 | if __name__ == '__main__': 30 | path = "../LGButton/Resources/" 31 | fonts = os.listdir(path) 32 | for font in fonts: 33 | if font.endswith(".ttf") == False: 34 | continue 35 | tt = ttLib.TTFont(path + font) 36 | print("FileName:%s\t\t"%font,"Name: %s Family: %s" % shortName(tt)) 37 | -------------------------------------------------------------------------------- /Example/LGButton.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD51AFB9204008FA782 /* AppDelegate.swift */; }; 11 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD71AFB9204008FA782 /* ViewController.swift */; }; 12 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 607FACD91AFB9204008FA782 /* Main.storyboard */; }; 13 | C94024EB1EEDE8D00028B9E2 /* LGButton.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C94024E91EEDE8D00028B9E2 /* LGButton.framework */; }; 14 | C9D7C14B1EEDDFFD00C12D57 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = C9D7C14A1EEDDFFD00C12D57 /* Assets.xcassets */; }; 15 | D800FA6EF381CB6C6F09C558 /* Pods_LGButton_Example.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4CED5CB4DE3A2C6C1467DCB3 /* Pods_LGButton_Example.framework */; }; 16 | /* End PBXBuildFile section */ 17 | 18 | /* Begin PBXFileReference section */ 19 | 28DC343380128220B56CEC87 /* Pods-LGButton_Example.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-LGButton_Example.release.xcconfig"; path = "Pods/Target Support Files/Pods-LGButton_Example/Pods-LGButton_Example.release.xcconfig"; sourceTree = ""; }; 20 | 4CED5CB4DE3A2C6C1467DCB3 /* Pods_LGButton_Example.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_LGButton_Example.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 21 | 607FACD01AFB9204008FA782 /* LGButton_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = LGButton_Example.app; sourceTree = BUILT_PRODUCTS_DIR; }; 22 | 607FACD41AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 23 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 24 | 607FACD71AFB9204008FA782 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 25 | 607FACDA1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 26 | 61AAEC782088AA993B03831B /* Pods_LGButton_Tests.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_LGButton_Tests.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 27 | 8534994E5EE5808C3D2412B9 /* LGButton.podspec */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text; name = LGButton.podspec; path = ../LGButton.podspec; sourceTree = ""; }; 28 | 9106FE46136FEA0E02485C1F /* Pods-LGButton_Example.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-LGButton_Example.debug.xcconfig"; path = "Pods/Target Support Files/Pods-LGButton_Example/Pods-LGButton_Example.debug.xcconfig"; sourceTree = ""; }; 29 | AAD02D6B9CC428DFC6DD429D /* Pods-LGButton_Tests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-LGButton_Tests.release.xcconfig"; path = "Pods/Target Support Files/Pods-LGButton_Tests/Pods-LGButton_Tests.release.xcconfig"; sourceTree = ""; }; 30 | AC9BCE1E2CCB11A91C76080D /* LICENSE.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = LICENSE.md; path = ../LICENSE.md; sourceTree = ""; }; 31 | C36DAAEFF173645766E9157E /* Pods-LGButton_Tests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-LGButton_Tests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-LGButton_Tests/Pods-LGButton_Tests.debug.xcconfig"; sourceTree = ""; }; 32 | C94024E91EEDE8D00028B9E2 /* LGButton.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = LGButton.framework; path = "../../../../../Library/Developer/Xcode/DerivedData/LGButton-bpahpxniesyyiudpqdubgfomwwez/Build/Products/Debug-iphonesimulator/LGButton/LGButton.framework"; sourceTree = ""; }; 33 | C94024EA1EEDE8D00028B9E2 /* SwiftIconFont.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SwiftIconFont.framework; path = "../../../../../Library/Developer/Xcode/DerivedData/LGButton-bpahpxniesyyiudpqdubgfomwwez/Build/Products/Debug-iphonesimulator/SwiftIconFont/SwiftIconFont.framework"; sourceTree = ""; }; 34 | C9D7C14A1EEDDFFD00C12D57 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 35 | F414603965E8B52EFAF894EA /* README.md */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = ""; }; 36 | /* End PBXFileReference section */ 37 | 38 | /* Begin PBXFrameworksBuildPhase section */ 39 | 607FACCD1AFB9204008FA782 /* Frameworks */ = { 40 | isa = PBXFrameworksBuildPhase; 41 | buildActionMask = 2147483647; 42 | files = ( 43 | C94024EB1EEDE8D00028B9E2 /* LGButton.framework in Frameworks */, 44 | D800FA6EF381CB6C6F09C558 /* Pods_LGButton_Example.framework in Frameworks */, 45 | ); 46 | runOnlyForDeploymentPostprocessing = 0; 47 | }; 48 | /* End PBXFrameworksBuildPhase section */ 49 | 50 | /* Begin PBXGroup section */ 51 | 07178813EBAAF6F1B41D3E11 /* Pods */ = { 52 | isa = PBXGroup; 53 | children = ( 54 | 9106FE46136FEA0E02485C1F /* Pods-LGButton_Example.debug.xcconfig */, 55 | 28DC343380128220B56CEC87 /* Pods-LGButton_Example.release.xcconfig */, 56 | C36DAAEFF173645766E9157E /* Pods-LGButton_Tests.debug.xcconfig */, 57 | AAD02D6B9CC428DFC6DD429D /* Pods-LGButton_Tests.release.xcconfig */, 58 | ); 59 | name = Pods; 60 | sourceTree = ""; 61 | }; 62 | 607FACC71AFB9204008FA782 = { 63 | isa = PBXGroup; 64 | children = ( 65 | 607FACF51AFB993E008FA782 /* Podspec Metadata */, 66 | 607FACD21AFB9204008FA782 /* Example for LGButton */, 67 | 607FACD11AFB9204008FA782 /* Products */, 68 | 07178813EBAAF6F1B41D3E11 /* Pods */, 69 | 88A1384C405EE1B0F6BD0358 /* Frameworks */, 70 | ); 71 | sourceTree = ""; 72 | }; 73 | 607FACD11AFB9204008FA782 /* Products */ = { 74 | isa = PBXGroup; 75 | children = ( 76 | 607FACD01AFB9204008FA782 /* LGButton_Example.app */, 77 | ); 78 | name = Products; 79 | sourceTree = ""; 80 | }; 81 | 607FACD21AFB9204008FA782 /* Example for LGButton */ = { 82 | isa = PBXGroup; 83 | children = ( 84 | C9D7C14A1EEDDFFD00C12D57 /* Assets.xcassets */, 85 | 607FACD51AFB9204008FA782 /* AppDelegate.swift */, 86 | 607FACD71AFB9204008FA782 /* ViewController.swift */, 87 | 607FACD91AFB9204008FA782 /* Main.storyboard */, 88 | 607FACD31AFB9204008FA782 /* Supporting Files */, 89 | ); 90 | name = "Example for LGButton"; 91 | path = LGButton; 92 | sourceTree = ""; 93 | }; 94 | 607FACD31AFB9204008FA782 /* Supporting Files */ = { 95 | isa = PBXGroup; 96 | children = ( 97 | 607FACD41AFB9204008FA782 /* Info.plist */, 98 | ); 99 | name = "Supporting Files"; 100 | sourceTree = ""; 101 | }; 102 | 607FACF51AFB993E008FA782 /* Podspec Metadata */ = { 103 | isa = PBXGroup; 104 | children = ( 105 | 8534994E5EE5808C3D2412B9 /* LGButton.podspec */, 106 | F414603965E8B52EFAF894EA /* README.md */, 107 | AC9BCE1E2CCB11A91C76080D /* LICENSE.md */, 108 | ); 109 | name = "Podspec Metadata"; 110 | sourceTree = ""; 111 | }; 112 | 88A1384C405EE1B0F6BD0358 /* Frameworks */ = { 113 | isa = PBXGroup; 114 | children = ( 115 | C94024E91EEDE8D00028B9E2 /* LGButton.framework */, 116 | C94024EA1EEDE8D00028B9E2 /* SwiftIconFont.framework */, 117 | 4CED5CB4DE3A2C6C1467DCB3 /* Pods_LGButton_Example.framework */, 118 | 61AAEC782088AA993B03831B /* Pods_LGButton_Tests.framework */, 119 | ); 120 | name = Frameworks; 121 | sourceTree = ""; 122 | }; 123 | /* End PBXGroup section */ 124 | 125 | /* Begin PBXNativeTarget section */ 126 | 607FACCF1AFB9204008FA782 /* LGButton_Example */ = { 127 | isa = PBXNativeTarget; 128 | buildConfigurationList = 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "LGButton_Example" */; 129 | buildPhases = ( 130 | 7B6DD2AC31A903DA603ABF91 /* [CP] Check Pods Manifest.lock */, 131 | 607FACCC1AFB9204008FA782 /* Sources */, 132 | 607FACCD1AFB9204008FA782 /* Frameworks */, 133 | 607FACCE1AFB9204008FA782 /* Resources */, 134 | 8FB5333CC17FF08BF956E10A /* [CP] Embed Pods Frameworks */, 135 | 2B14002810DF2BF7213EE583 /* [CP] Copy Pods Resources */, 136 | ); 137 | buildRules = ( 138 | ); 139 | dependencies = ( 140 | ); 141 | name = LGButton_Example; 142 | productName = LGButton; 143 | productReference = 607FACD01AFB9204008FA782 /* LGButton_Example.app */; 144 | productType = "com.apple.product-type.application"; 145 | }; 146 | /* End PBXNativeTarget section */ 147 | 148 | /* Begin PBXProject section */ 149 | 607FACC81AFB9204008FA782 /* Project object */ = { 150 | isa = PBXProject; 151 | attributes = { 152 | LastSwiftUpdateCheck = 0720; 153 | LastUpgradeCheck = 0910; 154 | ORGANIZATIONNAME = CocoaPods; 155 | TargetAttributes = { 156 | 607FACCF1AFB9204008FA782 = { 157 | CreatedOnToolsVersion = 6.3.1; 158 | LastSwiftMigration = 0900; 159 | }; 160 | }; 161 | }; 162 | buildConfigurationList = 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "LGButton" */; 163 | compatibilityVersion = "Xcode 3.2"; 164 | developmentRegion = English; 165 | hasScannedForEncodings = 0; 166 | knownRegions = ( 167 | en, 168 | Base, 169 | ); 170 | mainGroup = 607FACC71AFB9204008FA782; 171 | productRefGroup = 607FACD11AFB9204008FA782 /* Products */; 172 | projectDirPath = ""; 173 | projectRoot = ""; 174 | targets = ( 175 | 607FACCF1AFB9204008FA782 /* LGButton_Example */, 176 | ); 177 | }; 178 | /* End PBXProject section */ 179 | 180 | /* Begin PBXResourcesBuildPhase section */ 181 | 607FACCE1AFB9204008FA782 /* Resources */ = { 182 | isa = PBXResourcesBuildPhase; 183 | buildActionMask = 2147483647; 184 | files = ( 185 | C9D7C14B1EEDDFFD00C12D57 /* Assets.xcassets in Resources */, 186 | 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */, 187 | ); 188 | runOnlyForDeploymentPostprocessing = 0; 189 | }; 190 | /* End PBXResourcesBuildPhase section */ 191 | 192 | /* Begin PBXShellScriptBuildPhase section */ 193 | 2B14002810DF2BF7213EE583 /* [CP] Copy Pods Resources */ = { 194 | isa = PBXShellScriptBuildPhase; 195 | buildActionMask = 2147483647; 196 | files = ( 197 | ); 198 | inputPaths = ( 199 | ); 200 | name = "[CP] Copy Pods Resources"; 201 | outputPaths = ( 202 | ); 203 | runOnlyForDeploymentPostprocessing = 0; 204 | shellPath = /bin/sh; 205 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-LGButton_Example/Pods-LGButton_Example-resources.sh\"\n"; 206 | showEnvVarsInLog = 0; 207 | }; 208 | 7B6DD2AC31A903DA603ABF91 /* [CP] Check Pods Manifest.lock */ = { 209 | isa = PBXShellScriptBuildPhase; 210 | buildActionMask = 2147483647; 211 | files = ( 212 | ); 213 | inputPaths = ( 214 | "${PODS_PODFILE_DIR_PATH}/Podfile.lock", 215 | "${PODS_ROOT}/Manifest.lock", 216 | ); 217 | name = "[CP] Check Pods Manifest.lock"; 218 | outputPaths = ( 219 | "$(DERIVED_FILE_DIR)/Pods-LGButton_Example-checkManifestLockResult.txt", 220 | ); 221 | runOnlyForDeploymentPostprocessing = 0; 222 | shellPath = /bin/sh; 223 | shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; 224 | showEnvVarsInLog = 0; 225 | }; 226 | 8FB5333CC17FF08BF956E10A /* [CP] Embed Pods Frameworks */ = { 227 | isa = PBXShellScriptBuildPhase; 228 | buildActionMask = 2147483647; 229 | files = ( 230 | ); 231 | inputPaths = ( 232 | "${SRCROOT}/Pods/Target Support Files/Pods-LGButton_Example/Pods-LGButton_Example-frameworks.sh", 233 | "${BUILT_PRODUCTS_DIR}/LGButton/LGButton.framework", 234 | ); 235 | name = "[CP] Embed Pods Frameworks"; 236 | outputPaths = ( 237 | "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/LGButton.framework", 238 | ); 239 | runOnlyForDeploymentPostprocessing = 0; 240 | shellPath = /bin/sh; 241 | shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-LGButton_Example/Pods-LGButton_Example-frameworks.sh\"\n"; 242 | showEnvVarsInLog = 0; 243 | }; 244 | /* End PBXShellScriptBuildPhase section */ 245 | 246 | /* Begin PBXSourcesBuildPhase section */ 247 | 607FACCC1AFB9204008FA782 /* Sources */ = { 248 | isa = PBXSourcesBuildPhase; 249 | buildActionMask = 2147483647; 250 | files = ( 251 | 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */, 252 | 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */, 253 | ); 254 | runOnlyForDeploymentPostprocessing = 0; 255 | }; 256 | /* End PBXSourcesBuildPhase section */ 257 | 258 | /* Begin PBXVariantGroup section */ 259 | 607FACD91AFB9204008FA782 /* Main.storyboard */ = { 260 | isa = PBXVariantGroup; 261 | children = ( 262 | 607FACDA1AFB9204008FA782 /* Base */, 263 | ); 264 | name = Main.storyboard; 265 | sourceTree = ""; 266 | }; 267 | /* End PBXVariantGroup section */ 268 | 269 | /* Begin XCBuildConfiguration section */ 270 | 607FACED1AFB9204008FA782 /* Debug */ = { 271 | isa = XCBuildConfiguration; 272 | buildSettings = { 273 | ALWAYS_SEARCH_USER_PATHS = NO; 274 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 275 | CLANG_CXX_LIBRARY = "libc++"; 276 | CLANG_ENABLE_MODULES = YES; 277 | CLANG_ENABLE_OBJC_ARC = YES; 278 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 279 | CLANG_WARN_BOOL_CONVERSION = YES; 280 | CLANG_WARN_COMMA = YES; 281 | CLANG_WARN_CONSTANT_CONVERSION = YES; 282 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 283 | CLANG_WARN_EMPTY_BODY = YES; 284 | CLANG_WARN_ENUM_CONVERSION = YES; 285 | CLANG_WARN_INFINITE_RECURSION = YES; 286 | CLANG_WARN_INT_CONVERSION = YES; 287 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 288 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 289 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 290 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 291 | CLANG_WARN_STRICT_PROTOTYPES = YES; 292 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 293 | CLANG_WARN_UNREACHABLE_CODE = YES; 294 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 295 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 296 | COPY_PHASE_STRIP = NO; 297 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 298 | ENABLE_STRICT_OBJC_MSGSEND = YES; 299 | ENABLE_TESTABILITY = YES; 300 | GCC_C_LANGUAGE_STANDARD = gnu99; 301 | GCC_DYNAMIC_NO_PIC = NO; 302 | GCC_NO_COMMON_BLOCKS = YES; 303 | GCC_OPTIMIZATION_LEVEL = 0; 304 | GCC_PREPROCESSOR_DEFINITIONS = ( 305 | "DEBUG=1", 306 | "$(inherited)", 307 | ); 308 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 309 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 310 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 311 | GCC_WARN_UNDECLARED_SELECTOR = YES; 312 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 313 | GCC_WARN_UNUSED_FUNCTION = YES; 314 | GCC_WARN_UNUSED_VARIABLE = YES; 315 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 316 | MTL_ENABLE_DEBUG_INFO = YES; 317 | ONLY_ACTIVE_ARCH = YES; 318 | SDKROOT = iphoneos; 319 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 320 | }; 321 | name = Debug; 322 | }; 323 | 607FACEE1AFB9204008FA782 /* Release */ = { 324 | isa = XCBuildConfiguration; 325 | buildSettings = { 326 | ALWAYS_SEARCH_USER_PATHS = NO; 327 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 328 | CLANG_CXX_LIBRARY = "libc++"; 329 | CLANG_ENABLE_MODULES = YES; 330 | CLANG_ENABLE_OBJC_ARC = YES; 331 | CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; 332 | CLANG_WARN_BOOL_CONVERSION = YES; 333 | CLANG_WARN_COMMA = YES; 334 | CLANG_WARN_CONSTANT_CONVERSION = YES; 335 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 336 | CLANG_WARN_EMPTY_BODY = YES; 337 | CLANG_WARN_ENUM_CONVERSION = YES; 338 | CLANG_WARN_INFINITE_RECURSION = YES; 339 | CLANG_WARN_INT_CONVERSION = YES; 340 | CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; 341 | CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; 342 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 343 | CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; 344 | CLANG_WARN_STRICT_PROTOTYPES = YES; 345 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 346 | CLANG_WARN_UNREACHABLE_CODE = YES; 347 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 348 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 349 | COPY_PHASE_STRIP = NO; 350 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 351 | ENABLE_NS_ASSERTIONS = NO; 352 | ENABLE_STRICT_OBJC_MSGSEND = YES; 353 | GCC_C_LANGUAGE_STANDARD = gnu99; 354 | GCC_NO_COMMON_BLOCKS = YES; 355 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 356 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 357 | GCC_WARN_UNDECLARED_SELECTOR = YES; 358 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 359 | GCC_WARN_UNUSED_FUNCTION = YES; 360 | GCC_WARN_UNUSED_VARIABLE = YES; 361 | IPHONEOS_DEPLOYMENT_TARGET = 8.3; 362 | MTL_ENABLE_DEBUG_INFO = NO; 363 | SDKROOT = iphoneos; 364 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 365 | VALIDATE_PRODUCT = YES; 366 | }; 367 | name = Release; 368 | }; 369 | 607FACF01AFB9204008FA782 /* Debug */ = { 370 | isa = XCBuildConfiguration; 371 | baseConfigurationReference = 9106FE46136FEA0E02485C1F /* Pods-LGButton_Example.debug.xcconfig */; 372 | buildSettings = { 373 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 374 | DEVELOPMENT_TEAM = ""; 375 | INFOPLIST_FILE = LGButton/Info.plist; 376 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 377 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 378 | MODULE_NAME = ExampleApp; 379 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 380 | PRODUCT_NAME = "$(TARGET_NAME)"; 381 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 382 | SWIFT_VERSION = 4.2; 383 | }; 384 | name = Debug; 385 | }; 386 | 607FACF11AFB9204008FA782 /* Release */ = { 387 | isa = XCBuildConfiguration; 388 | baseConfigurationReference = 28DC343380128220B56CEC87 /* Pods-LGButton_Example.release.xcconfig */; 389 | buildSettings = { 390 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 391 | DEVELOPMENT_TEAM = ""; 392 | INFOPLIST_FILE = LGButton/Info.plist; 393 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 394 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 395 | MODULE_NAME = ExampleApp; 396 | PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)"; 397 | PRODUCT_NAME = "$(TARGET_NAME)"; 398 | SWIFT_SWIFT3_OBJC_INFERENCE = Default; 399 | SWIFT_VERSION = 4.2; 400 | }; 401 | name = Release; 402 | }; 403 | /* End XCBuildConfiguration section */ 404 | 405 | /* Begin XCConfigurationList section */ 406 | 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "LGButton" */ = { 407 | isa = XCConfigurationList; 408 | buildConfigurations = ( 409 | 607FACED1AFB9204008FA782 /* Debug */, 410 | 607FACEE1AFB9204008FA782 /* Release */, 411 | ); 412 | defaultConfigurationIsVisible = 0; 413 | defaultConfigurationName = Release; 414 | }; 415 | 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "LGButton_Example" */ = { 416 | isa = XCConfigurationList; 417 | buildConfigurations = ( 418 | 607FACF01AFB9204008FA782 /* Debug */, 419 | 607FACF11AFB9204008FA782 /* Release */, 420 | ); 421 | defaultConfigurationIsVisible = 0; 422 | defaultConfigurationName = Release; 423 | }; 424 | /* End XCConfigurationList section */ 425 | }; 426 | rootObject = 607FACC81AFB9204008FA782 /* Project object */; 427 | } 428 | -------------------------------------------------------------------------------- /Example/LGButton.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/LGButton.xcodeproj/xcshareddata/xcschemes/LGButton-Example.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 38 | 39 | 45 | 46 | 48 | 54 | 55 | 56 | 57 | 58 | 64 | 65 | 66 | 67 | 68 | 69 | 80 | 82 | 88 | 89 | 90 | 91 | 92 | 93 | 99 | 101 | 107 | 108 | 109 | 110 | 112 | 113 | 116 | 117 | 118 | -------------------------------------------------------------------------------- /Example/LGButton.xcodeproj/xcuserdata/Renzo.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SuppressBuildableAutocreation 6 | 7 | 607FACCF1AFB9204008FA782 8 | 9 | primary 10 | 11 | 12 | 607FACE41AFB9204008FA782 13 | 14 | primary 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /Example/LGButton.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Example/LGButton.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Example/LGButton/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // LGButtonDemo 4 | // 5 | // Created by Lorenzo Greco on 28/05/2017. 6 | // Copyright © 2017 Lorenzo Greco. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | var window: UIWindow? 15 | 16 | 17 | private func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { 18 | // Override point for customization after application launch. 19 | return true 20 | } 21 | 22 | func applicationWillResignActive(_ application: UIApplication) { 23 | // 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. 24 | // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. 25 | } 26 | 27 | func applicationDidEnterBackground(_ application: UIApplication) { 28 | // 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. 29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 30 | } 31 | 32 | func applicationWillEnterForeground(_ application: UIApplication) { 33 | // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. 34 | } 35 | 36 | func applicationDidBecomeActive(_ application: UIApplication) { 37 | // 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. 38 | } 39 | 40 | func applicationWillTerminate(_ application: UIApplication) { 41 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 42 | } 43 | 44 | 45 | } 46 | 47 | -------------------------------------------------------------------------------- /Example/LGButton/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "20x20", 5 | "idiom" : "iphone", 6 | "filename" : "Icon-App-20x20@2x.png", 7 | "scale" : "2x" 8 | }, 9 | { 10 | "size" : "20x20", 11 | "idiom" : "iphone", 12 | "filename" : "Icon-App-20x20@3x.png", 13 | "scale" : "3x" 14 | }, 15 | { 16 | "size" : "29x29", 17 | "idiom" : "iphone", 18 | "filename" : "Icon-App-29x29@1x.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "29x29", 23 | "idiom" : "iphone", 24 | "filename" : "Icon-App-29x29@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "29x29", 29 | "idiom" : "iphone", 30 | "filename" : "Icon-App-29x29@3x.png", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "size" : "40x40", 35 | "idiom" : "iphone", 36 | "filename" : "Icon-App-40x40@2x.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "40x40", 41 | "idiom" : "iphone", 42 | "filename" : "Icon-App-40x40@3x.png", 43 | "scale" : "3x" 44 | }, 45 | { 46 | "size" : "57x57", 47 | "idiom" : "iphone", 48 | "filename" : "Icon-App-57x57@1x.png", 49 | "scale" : "1x" 50 | }, 51 | { 52 | "size" : "57x57", 53 | "idiom" : "iphone", 54 | "filename" : "Icon-App-57x57@2x.png", 55 | "scale" : "2x" 56 | }, 57 | { 58 | "size" : "60x60", 59 | "idiom" : "iphone", 60 | "filename" : "Icon-App-60x60@2x.png", 61 | "scale" : "2x" 62 | }, 63 | { 64 | "size" : "60x60", 65 | "idiom" : "iphone", 66 | "filename" : "Icon-App-60x60@3x.png", 67 | "scale" : "3x" 68 | }, 69 | { 70 | "size" : "20x20", 71 | "idiom" : "ipad", 72 | "filename" : "Icon-App-20x20@1x.png", 73 | "scale" : "1x" 74 | }, 75 | { 76 | "size" : "20x20", 77 | "idiom" : "ipad", 78 | "filename" : "Icon-App-20x20@2x.png", 79 | "scale" : "2x" 80 | }, 81 | { 82 | "size" : "29x29", 83 | "idiom" : "ipad", 84 | "filename" : "Icon-App-29x29@1x.png", 85 | "scale" : "1x" 86 | }, 87 | { 88 | "size" : "29x29", 89 | "idiom" : "ipad", 90 | "filename" : "Icon-App-29x29@2x.png", 91 | "scale" : "2x" 92 | }, 93 | { 94 | "size" : "40x40", 95 | "idiom" : "ipad", 96 | "filename" : "Icon-App-40x40@1x.png", 97 | "scale" : "1x" 98 | }, 99 | { 100 | "size" : "40x40", 101 | "idiom" : "ipad", 102 | "filename" : "Icon-App-40x40@2x.png", 103 | "scale" : "2x" 104 | }, 105 | { 106 | "size" : "50x50", 107 | "idiom" : "ipad", 108 | "filename" : "Icon-Small-50x50@1x.png", 109 | "scale" : "1x" 110 | }, 111 | { 112 | "size" : "50x50", 113 | "idiom" : "ipad", 114 | "filename" : "Icon-Small-50x50@2x.png", 115 | "scale" : "2x" 116 | }, 117 | { 118 | "size" : "72x72", 119 | "idiom" : "ipad", 120 | "filename" : "Icon-App-72x72@1x.png", 121 | "scale" : "1x" 122 | }, 123 | { 124 | "size" : "72x72", 125 | "idiom" : "ipad", 126 | "filename" : "Icon-App-72x72@2x.png", 127 | "scale" : "2x" 128 | }, 129 | { 130 | "size" : "76x76", 131 | "idiom" : "ipad", 132 | "filename" : "Icon-App-76x76@1x.png", 133 | "scale" : "1x" 134 | }, 135 | { 136 | "size" : "76x76", 137 | "idiom" : "ipad", 138 | "filename" : "Icon-App-76x76@2x.png", 139 | "scale" : "2x" 140 | }, 141 | { 142 | "size" : "83.5x83.5", 143 | "idiom" : "ipad", 144 | "filename" : "Icon-App-83.5x83.5@2x.png", 145 | "scale" : "2x" 146 | }, 147 | { 148 | "idiom" : "ios-marketing", 149 | "size" : "1024x1024", 150 | "scale" : "1x" 151 | }, 152 | { 153 | "size" : "40x40", 154 | "idiom" : "iphone", 155 | "filename" : "Icon-App-40x40@1x.png", 156 | "scale" : "1x" 157 | }, 158 | { 159 | "size" : "60x60", 160 | "idiom" : "iphone", 161 | "filename" : "Icon-App-60x60@1x.png", 162 | "scale" : "1x" 163 | }, 164 | { 165 | "size" : "76x76", 166 | "idiom" : "iphone", 167 | "filename" : "Icon-App-76x76@1x.png", 168 | "scale" : "1x" 169 | }, 170 | { 171 | "size" : "76x76", 172 | "idiom" : "ipad", 173 | "filename" : "Icon-App-76x76@3x.png", 174 | "scale" : "3x" 175 | } 176 | ], 177 | "info" : { 178 | "version" : 1, 179 | "author" : "xcode" 180 | } 181 | } -------------------------------------------------------------------------------- /Example/LGButton/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loregr/LGButton/b58540eff6b1ca74aeffdff71cd5eb060a219469/Example/LGButton/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png -------------------------------------------------------------------------------- /Example/LGButton/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loregr/LGButton/b58540eff6b1ca74aeffdff71cd5eb060a219469/Example/LGButton/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png -------------------------------------------------------------------------------- /Example/LGButton/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loregr/LGButton/b58540eff6b1ca74aeffdff71cd5eb060a219469/Example/LGButton/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png -------------------------------------------------------------------------------- /Example/LGButton/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loregr/LGButton/b58540eff6b1ca74aeffdff71cd5eb060a219469/Example/LGButton/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png -------------------------------------------------------------------------------- /Example/LGButton/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loregr/LGButton/b58540eff6b1ca74aeffdff71cd5eb060a219469/Example/LGButton/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png -------------------------------------------------------------------------------- /Example/LGButton/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loregr/LGButton/b58540eff6b1ca74aeffdff71cd5eb060a219469/Example/LGButton/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png -------------------------------------------------------------------------------- /Example/LGButton/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loregr/LGButton/b58540eff6b1ca74aeffdff71cd5eb060a219469/Example/LGButton/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png -------------------------------------------------------------------------------- /Example/LGButton/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loregr/LGButton/b58540eff6b1ca74aeffdff71cd5eb060a219469/Example/LGButton/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png -------------------------------------------------------------------------------- /Example/LGButton/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loregr/LGButton/b58540eff6b1ca74aeffdff71cd5eb060a219469/Example/LGButton/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png -------------------------------------------------------------------------------- /Example/LGButton/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loregr/LGButton/b58540eff6b1ca74aeffdff71cd5eb060a219469/Example/LGButton/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@1x.png -------------------------------------------------------------------------------- /Example/LGButton/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loregr/LGButton/b58540eff6b1ca74aeffdff71cd5eb060a219469/Example/LGButton/Assets.xcassets/AppIcon.appiconset/Icon-App-57x57@2x.png -------------------------------------------------------------------------------- /Example/LGButton/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loregr/LGButton/b58540eff6b1ca74aeffdff71cd5eb060a219469/Example/LGButton/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@1x.png -------------------------------------------------------------------------------- /Example/LGButton/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loregr/LGButton/b58540eff6b1ca74aeffdff71cd5eb060a219469/Example/LGButton/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png -------------------------------------------------------------------------------- /Example/LGButton/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loregr/LGButton/b58540eff6b1ca74aeffdff71cd5eb060a219469/Example/LGButton/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png -------------------------------------------------------------------------------- /Example/LGButton/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loregr/LGButton/b58540eff6b1ca74aeffdff71cd5eb060a219469/Example/LGButton/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@1x.png -------------------------------------------------------------------------------- /Example/LGButton/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loregr/LGButton/b58540eff6b1ca74aeffdff71cd5eb060a219469/Example/LGButton/Assets.xcassets/AppIcon.appiconset/Icon-App-72x72@2x.png -------------------------------------------------------------------------------- /Example/LGButton/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loregr/LGButton/b58540eff6b1ca74aeffdff71cd5eb060a219469/Example/LGButton/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png -------------------------------------------------------------------------------- /Example/LGButton/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loregr/LGButton/b58540eff6b1ca74aeffdff71cd5eb060a219469/Example/LGButton/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /Example/LGButton/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loregr/LGButton/b58540eff6b1ca74aeffdff71cd5eb060a219469/Example/LGButton/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@3x.png -------------------------------------------------------------------------------- /Example/LGButton/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loregr/LGButton/b58540eff6b1ca74aeffdff71cd5eb060a219469/Example/LGButton/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /Example/LGButton/Assets.xcassets/AppIcon.appiconset/Icon-Small-50x50@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loregr/LGButton/b58540eff6b1ca74aeffdff71cd5eb060a219469/Example/LGButton/Assets.xcassets/AppIcon.appiconset/Icon-Small-50x50@1x.png -------------------------------------------------------------------------------- /Example/LGButton/Assets.xcassets/AppIcon.appiconset/Icon-Small-50x50@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loregr/LGButton/b58540eff6b1ca74aeffdff71cd5eb060a219469/Example/LGButton/Assets.xcassets/AppIcon.appiconset/Icon-Small-50x50@2x.png -------------------------------------------------------------------------------- /Example/LGButton/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /Example/LGButton/Assets.xcassets/home_icon.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "home_icon.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "home_icon@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "home_icon@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } -------------------------------------------------------------------------------- /Example/LGButton/Assets.xcassets/home_icon.imageset/home_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loregr/LGButton/b58540eff6b1ca74aeffdff71cd5eb060a219469/Example/LGButton/Assets.xcassets/home_icon.imageset/home_icon.png -------------------------------------------------------------------------------- /Example/LGButton/Assets.xcassets/home_icon.imageset/home_icon@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loregr/LGButton/b58540eff6b1ca74aeffdff71cd5eb060a219469/Example/LGButton/Assets.xcassets/home_icon.imageset/home_icon@2x.png -------------------------------------------------------------------------------- /Example/LGButton/Assets.xcassets/home_icon.imageset/home_icon@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loregr/LGButton/b58540eff6b1ca74aeffdff71cd5eb060a219469/Example/LGButton/Assets.xcassets/home_icon.imageset/home_icon@3x.png -------------------------------------------------------------------------------- /Example/LGButton/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /Example/LGButton/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | LSRequiresIPhoneOS 22 | 23 | UILaunchStoryboardName 24 | LaunchScreen 25 | UIMainStoryboardFile 26 | Main 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /Example/LGButton/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // LGButtonDemo 4 | // 5 | // Created by Lorenzo Greco on 28/05/2017. 6 | // Copyright © 2017 Lorenzo Greco. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import LGButton 11 | 12 | class ViewController: UIViewController { 13 | 14 | 15 | @IBAction func action(_ sender: LGButton) { 16 | sender.isLoading = true 17 | let deadlineTime = DispatchTime.now() + .seconds(3) 18 | DispatchQueue.main.asyncAfter(deadline: deadlineTime) { 19 | sender.isLoading = false 20 | // DO SOMETHING 21 | } 22 | } 23 | } 24 | 25 | -------------------------------------------------------------------------------- /Example/Podfile: -------------------------------------------------------------------------------- 1 | platform :ios, '9.0' 2 | 3 | use_frameworks! 4 | 5 | target 'LGButton_Example' do 6 | pod 'LGButton', :path => '../' 7 | end 8 | -------------------------------------------------------------------------------- /Example/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - LGButton (1.0.4) 3 | 4 | DEPENDENCIES: 5 | - LGButton (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | LGButton: 9 | :path: ../ 10 | 11 | SPEC CHECKSUMS: 12 | LGButton: 18e95e29f4c8738fcab088f35c7b861d6e797e8b 13 | 14 | PODFILE CHECKSUM: 448b2d5ebb3f7a98ab2e34cf948f1d44062399e6 15 | 16 | COCOAPODS: 1.3.1 17 | -------------------------------------------------------------------------------- /Example/Pods/Local Podspecs/LGButton.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "LGButton", 3 | "version": "1.0.4", 4 | "summary": "A fully customisable subclass of the native UIControl which allows you to create beautiful buttons without writing any line of code.", 5 | "homepage": "https://cocoapods.org/pods/LGButton", 6 | "license": { 7 | "type": "MIT", 8 | "file": "LICENSE.md" 9 | }, 10 | "authors": { 11 | "Lorenzo Greco": "lorenzo.gr90@gmail.com" 12 | }, 13 | "source": { 14 | "git": "https://github.com/loregr/LGButton.git", 15 | "tag": "1.0.4" 16 | }, 17 | "platforms": { 18 | "ios": "9.0" 19 | }, 20 | "source_files": "LGButton/Classes/**/*.{swift}", 21 | "resources": "LGButton/Resources/*" 22 | } 23 | -------------------------------------------------------------------------------- /Example/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - LGButton (1.0.4) 3 | 4 | DEPENDENCIES: 5 | - LGButton (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | LGButton: 9 | :path: ../ 10 | 11 | SPEC CHECKSUMS: 12 | LGButton: 18e95e29f4c8738fcab088f35c7b861d6e797e8b 13 | 14 | PODFILE CHECKSUM: 448b2d5ebb3f7a98ab2e34cf948f1d44062399e6 15 | 16 | COCOAPODS: 1.3.1 17 | -------------------------------------------------------------------------------- /Example/Pods/Pods.xcodeproj/xcuserdata/Renzo.xcuserdatad/xcschemes/LGButton.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 43 | 44 | 45 | 46 | 52 | 53 | 55 | 56 | 59 | 60 | 61 | -------------------------------------------------------------------------------- /Example/Pods/Pods.xcodeproj/xcuserdata/Renzo.xcuserdatad/xcschemes/Pods-LGButton_Example.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 34 | 35 | 45 | 46 | 52 | 53 | 54 | 55 | 56 | 57 | 63 | 64 | 66 | 67 | 70 | 71 | 72 | -------------------------------------------------------------------------------- /Example/Pods/Pods.xcodeproj/xcuserdata/Renzo.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | LGButton.xcscheme 8 | 9 | isShown 10 | 11 | 12 | Pods-LGButton_Example.xcscheme 13 | 14 | isShown 15 | 16 | 17 | 18 | SuppressBuildableAutocreation 19 | 20 | 7AF50A14321A54F7340BF87AB1CDE56D 21 | 22 | primary 23 | 24 | 25 | DCB2B03C26F284864226302AFAEC546C 26 | 27 | primary 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/LGButton/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.4 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/LGButton/LGButton-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_LGButton : NSObject 3 | @end 4 | @implementation PodsDummy_LGButton 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/LGButton/LGButton-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/LGButton/LGButton-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double LGButtonVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char LGButtonVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/LGButton/LGButton.modulemap: -------------------------------------------------------------------------------- 1 | framework module LGButton { 2 | umbrella header "LGButton-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/LGButton/LGButton.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = $PODS_CONFIGURATION_BUILD_DIR/LGButton 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Public" 4 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 5 | PODS_BUILD_DIR = $BUILD_DIR 6 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_ROOT = ${SRCROOT} 8 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/../.. 9 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 10 | SKIP_INSTALL = YES 11 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-LGButton_Example/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-LGButton_Example/Pods-LGButton_Example-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## LGButton 5 | 6 | MIT License 7 | 8 | Copyright (c) 2017 Lorenzo Greco 9 | 10 | Permission is hereby granted, free of charge, to any person obtaining a copy 11 | of this software and associated documentation files (the "Software"), to deal 12 | in the Software without restriction, including without limitation the rights 13 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 14 | copies of the Software, and to permit persons to whom the Software is 15 | furnished to do so, subject to the following conditions: 16 | 17 | The above copyright notice and this permission notice shall be included in all 18 | copies or substantial portions of the Software. 19 | 20 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 21 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 22 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 23 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 24 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 25 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 26 | SOFTWARE. 27 | 28 | Generated by CocoaPods - https://cocoapods.org 29 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-LGButton_Example/Pods-LGButton_Example-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | MIT License 18 | 19 | Copyright (c) 2017 Lorenzo Greco 20 | 21 | Permission is hereby granted, free of charge, to any person obtaining a copy 22 | of this software and associated documentation files (the "Software"), to deal 23 | in the Software without restriction, including without limitation the rights 24 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 25 | copies of the Software, and to permit persons to whom the Software is 26 | furnished to do so, subject to the following conditions: 27 | 28 | The above copyright notice and this permission notice shall be included in all 29 | copies or substantial portions of the Software. 30 | 31 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 32 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 33 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 34 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 35 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 36 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 37 | SOFTWARE. 38 | 39 | License 40 | MIT 41 | Title 42 | LGButton 43 | Type 44 | PSGroupSpecifier 45 | 46 | 47 | FooterText 48 | Generated by CocoaPods - https://cocoapods.org 49 | Title 50 | 51 | Type 52 | PSGroupSpecifier 53 | 54 | 55 | StringsTable 56 | Acknowledgements 57 | Title 58 | Acknowledgements 59 | 60 | 61 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-LGButton_Example/Pods-LGButton_Example-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_LGButton_Example : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_LGButton_Example 5 | @end 6 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-LGButton_Example/Pods-LGButton_Example-frameworks.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | echo "mkdir -p ${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 5 | mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 6 | 7 | SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" 8 | 9 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 10 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 11 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 12 | 13 | install_framework() 14 | { 15 | if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then 16 | local source="${BUILT_PRODUCTS_DIR}/$1" 17 | elif [ -r "${BUILT_PRODUCTS_DIR}/$(basename "$1")" ]; then 18 | local source="${BUILT_PRODUCTS_DIR}/$(basename "$1")" 19 | elif [ -r "$1" ]; then 20 | local source="$1" 21 | fi 22 | 23 | local destination="${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 24 | 25 | if [ -L "${source}" ]; then 26 | echo "Symlinked..." 27 | source="$(readlink "${source}")" 28 | fi 29 | 30 | # Use filter instead of exclude so missing patterns don't throw errors. 31 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${destination}\"" 32 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${destination}" 33 | 34 | local basename 35 | basename="$(basename -s .framework "$1")" 36 | binary="${destination}/${basename}.framework/${basename}" 37 | if ! [ -r "$binary" ]; then 38 | binary="${destination}/${basename}" 39 | fi 40 | 41 | # Strip invalid architectures so "fat" simulator / device frameworks work on device 42 | if [[ "$(file "$binary")" == *"dynamically linked shared library"* ]]; then 43 | strip_invalid_archs "$binary" 44 | fi 45 | 46 | # Resign the code if required by the build settings to avoid unstable apps 47 | code_sign_if_enabled "${destination}/$(basename "$1")" 48 | 49 | # Embed linked Swift runtime libraries. No longer necessary as of Xcode 7. 50 | if [ "${XCODE_VERSION_MAJOR}" -lt 7 ]; then 51 | local swift_runtime_libs 52 | swift_runtime_libs=$(xcrun otool -LX "$binary" | grep --color=never @rpath/libswift | sed -E s/@rpath\\/\(.+dylib\).*/\\1/g | uniq -u && exit ${PIPESTATUS[0]}) 53 | for lib in $swift_runtime_libs; do 54 | echo "rsync -auv \"${SWIFT_STDLIB_PATH}/${lib}\" \"${destination}\"" 55 | rsync -auv "${SWIFT_STDLIB_PATH}/${lib}" "${destination}" 56 | code_sign_if_enabled "${destination}/${lib}" 57 | done 58 | fi 59 | } 60 | 61 | # Copies the dSYM of a vendored framework 62 | install_dsym() { 63 | local source="$1" 64 | if [ -r "$source" ]; then 65 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${DWARF_DSYM_FOLDER_PATH}\"" 66 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${DWARF_DSYM_FOLDER_PATH}" 67 | fi 68 | } 69 | 70 | # Signs a framework with the provided identity 71 | code_sign_if_enabled() { 72 | if [ -n "${EXPANDED_CODE_SIGN_IDENTITY}" -a "${CODE_SIGNING_REQUIRED}" != "NO" -a "${CODE_SIGNING_ALLOWED}" != "NO" ]; then 73 | # Use the current code_sign_identitiy 74 | echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" 75 | local code_sign_cmd="/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} ${OTHER_CODE_SIGN_FLAGS} --preserve-metadata=identifier,entitlements '$1'" 76 | 77 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 78 | code_sign_cmd="$code_sign_cmd &" 79 | fi 80 | echo "$code_sign_cmd" 81 | eval "$code_sign_cmd" 82 | fi 83 | } 84 | 85 | # Strip invalid architectures 86 | strip_invalid_archs() { 87 | binary="$1" 88 | # Get architectures for current file 89 | archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | rev)" 90 | stripped="" 91 | for arch in $archs; do 92 | if ! [[ "${ARCHS}" == *"$arch"* ]]; then 93 | # Strip non-valid architectures in-place 94 | lipo -remove "$arch" -output "$binary" "$binary" || exit 1 95 | stripped="$stripped $arch" 96 | fi 97 | done 98 | if [[ "$stripped" ]]; then 99 | echo "Stripped $binary of architectures:$stripped" 100 | fi 101 | } 102 | 103 | 104 | if [[ "$CONFIGURATION" == "Debug" ]]; then 105 | install_framework "${BUILT_PRODUCTS_DIR}/LGButton/LGButton.framework" 106 | fi 107 | if [[ "$CONFIGURATION" == "Release" ]]; then 108 | install_framework "${BUILT_PRODUCTS_DIR}/LGButton/LGButton.framework" 109 | fi 110 | if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then 111 | wait 112 | fi 113 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-LGButton_Example/Pods-LGButton_Example-resources.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -e 3 | 4 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 5 | 6 | RESOURCES_TO_COPY=${PODS_ROOT}/resources-to-copy-${TARGETNAME}.txt 7 | > "$RESOURCES_TO_COPY" 8 | 9 | XCASSET_FILES=() 10 | 11 | # This protects against multiple targets copying the same framework dependency at the same time. The solution 12 | # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html 13 | RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") 14 | 15 | case "${TARGETED_DEVICE_FAMILY}" in 16 | 1,2) 17 | TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone" 18 | ;; 19 | 1) 20 | TARGET_DEVICE_ARGS="--target-device iphone" 21 | ;; 22 | 2) 23 | TARGET_DEVICE_ARGS="--target-device ipad" 24 | ;; 25 | 3) 26 | TARGET_DEVICE_ARGS="--target-device tv" 27 | ;; 28 | 4) 29 | TARGET_DEVICE_ARGS="--target-device watch" 30 | ;; 31 | *) 32 | TARGET_DEVICE_ARGS="--target-device mac" 33 | ;; 34 | esac 35 | 36 | install_resource() 37 | { 38 | if [[ "$1" = /* ]] ; then 39 | RESOURCE_PATH="$1" 40 | else 41 | RESOURCE_PATH="${PODS_ROOT}/$1" 42 | fi 43 | if [[ ! -e "$RESOURCE_PATH" ]] ; then 44 | cat << EOM 45 | error: Resource "$RESOURCE_PATH" not found. Run 'pod install' to update the copy resources script. 46 | EOM 47 | exit 1 48 | fi 49 | case $RESOURCE_PATH in 50 | *.storyboard) 51 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true 52 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .storyboard`.storyboardc" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 53 | ;; 54 | *.xib) 55 | echo "ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile ${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib $RESOURCE_PATH --sdk ${SDKROOT} ${TARGET_DEVICE_ARGS}" || true 56 | ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target ${!DEPLOYMENT_TARGET_SETTING_NAME} --output-format human-readable-text --compile "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename \"$RESOURCE_PATH\" .xib`.nib" "$RESOURCE_PATH" --sdk "${SDKROOT}" ${TARGET_DEVICE_ARGS} 57 | ;; 58 | *.framework) 59 | echo "mkdir -p ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true 60 | mkdir -p "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 61 | echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" $RESOURCE_PATH ${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" || true 62 | rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" 63 | ;; 64 | *.xcdatamodel) 65 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH"`.mom\"" || true 66 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodel`.mom" 67 | ;; 68 | *.xcdatamodeld) 69 | echo "xcrun momc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd\"" || true 70 | xcrun momc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcdatamodeld`.momd" 71 | ;; 72 | *.xcmappingmodel) 73 | echo "xcrun mapc \"$RESOURCE_PATH\" \"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm\"" || true 74 | xcrun mapc "$RESOURCE_PATH" "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/`basename "$RESOURCE_PATH" .xcmappingmodel`.cdm" 75 | ;; 76 | *.xcassets) 77 | ABSOLUTE_XCASSET_FILE="$RESOURCE_PATH" 78 | XCASSET_FILES+=("$ABSOLUTE_XCASSET_FILE") 79 | ;; 80 | *) 81 | echo "$RESOURCE_PATH" || true 82 | echo "$RESOURCE_PATH" >> "$RESOURCES_TO_COPY" 83 | ;; 84 | esac 85 | } 86 | 87 | mkdir -p "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 88 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 89 | if [[ "${ACTION}" == "install" ]] && [[ "${SKIP_INSTALL}" == "NO" ]]; then 90 | mkdir -p "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 91 | rsync -avr --copy-links --no-relative --exclude '*/.svn/*' --files-from="$RESOURCES_TO_COPY" / "${INSTALL_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 92 | fi 93 | rm -f "$RESOURCES_TO_COPY" 94 | 95 | if [[ -n "${WRAPPER_EXTENSION}" ]] && [ "`xcrun --find actool`" ] && [ -n "$XCASSET_FILES" ] 96 | then 97 | # Find all other xcassets (this unfortunately includes those of path pods and other targets). 98 | OTHER_XCASSETS=$(find "$PWD" -iname "*.xcassets" -type d) 99 | while read line; do 100 | if [[ $line != "${PODS_ROOT}*" ]]; then 101 | XCASSET_FILES+=("$line") 102 | fi 103 | done <<<"$OTHER_XCASSETS" 104 | 105 | printf "%s\0" "${XCASSET_FILES[@]}" | xargs -0 xcrun actool --output-format human-readable-text --notices --warnings --platform "${PLATFORM_NAME}" --minimum-deployment-target "${!DEPLOYMENT_TARGET_SETTING_NAME}" ${TARGET_DEVICE_ARGS} --compress-pngs --compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" 106 | fi 107 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-LGButton_Example/Pods-LGButton_Example-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double Pods_LGButton_ExampleVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_LGButton_ExampleVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-LGButton_Example/Pods-LGButton_Example.debug.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/LGButton" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 5 | OTHER_CFLAGS = $(inherited) -iquote "$PODS_CONFIGURATION_BUILD_DIR/LGButton/LGButton.framework/Headers" 6 | OTHER_LDFLAGS = $(inherited) -framework "LGButton" 7 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 8 | PODS_BUILD_DIR = $BUILD_DIR 9 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 10 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 11 | PODS_ROOT = ${SRCROOT}/Pods 12 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-LGButton_Example/Pods-LGButton_Example.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_LGButton_Example { 2 | umbrella header "Pods-LGButton_Example-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/Pods/Target Support Files/Pods-LGButton_Example/Pods-LGButton_Example.release.xcconfig: -------------------------------------------------------------------------------- 1 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES 2 | FRAMEWORK_SEARCH_PATHS = $(inherited) "$PODS_CONFIGURATION_BUILD_DIR/LGButton" 3 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 4 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 5 | OTHER_CFLAGS = $(inherited) -iquote "$PODS_CONFIGURATION_BUILD_DIR/LGButton/LGButton.framework/Headers" 6 | OTHER_LDFLAGS = $(inherited) -framework "LGButton" 7 | OTHER_SWIFT_FLAGS = $(inherited) "-D" "COCOAPODS" 8 | PODS_BUILD_DIR = $BUILD_DIR 9 | PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 10 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 11 | PODS_ROOT = ${SRCROOT}/Pods 12 | -------------------------------------------------------------------------------- /Example/build/Pods.build/Debug-iphoneos/LGButton.build/DerivedSources/LGButton_vers.c: -------------------------------------------------------------------------------- 1 | extern const unsigned char LGButtonVersionString[]; 2 | extern const double LGButtonVersionNumber; 3 | 4 | const unsigned char LGButtonVersionString[] __attribute__ ((used)) = "@(#)PROGRAM:LGButton PROJECT:Pods-1" "\n"; 5 | const double LGButtonVersionNumber __attribute__ ((used)) = (double)1.; 6 | -------------------------------------------------------------------------------- /Example/build/Pods.build/Debug-iphoneos/LGButton.build/LGButton-all-non-framework-target-headers.hmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loregr/LGButton/b58540eff6b1ca74aeffdff71cd5eb060a219469/Example/build/Pods.build/Debug-iphoneos/LGButton.build/LGButton-all-non-framework-target-headers.hmap -------------------------------------------------------------------------------- /Example/build/Pods.build/Debug-iphoneos/LGButton.build/LGButton-all-target-headers.hmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loregr/LGButton/b58540eff6b1ca74aeffdff71cd5eb060a219469/Example/build/Pods.build/Debug-iphoneos/LGButton.build/LGButton-all-target-headers.hmap -------------------------------------------------------------------------------- /Example/build/Pods.build/Debug-iphoneos/LGButton.build/LGButton-generated-files.hmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loregr/LGButton/b58540eff6b1ca74aeffdff71cd5eb060a219469/Example/build/Pods.build/Debug-iphoneos/LGButton.build/LGButton-generated-files.hmap -------------------------------------------------------------------------------- /Example/build/Pods.build/Debug-iphoneos/LGButton.build/LGButton-own-target-headers.hmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loregr/LGButton/b58540eff6b1ca74aeffdff71cd5eb060a219469/Example/build/Pods.build/Debug-iphoneos/LGButton.build/LGButton-own-target-headers.hmap -------------------------------------------------------------------------------- /Example/build/Pods.build/Debug-iphoneos/LGButton.build/LGButton-project-headers.hmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loregr/LGButton/b58540eff6b1ca74aeffdff71cd5eb060a219469/Example/build/Pods.build/Debug-iphoneos/LGButton.build/LGButton-project-headers.hmap -------------------------------------------------------------------------------- /Example/build/Pods.build/Debug-iphoneos/LGButton.build/LGButton.hmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loregr/LGButton/b58540eff6b1ca74aeffdff71cd5eb060a219469/Example/build/Pods.build/Debug-iphoneos/LGButton.build/LGButton.hmap -------------------------------------------------------------------------------- /Example/build/Pods.build/Debug-iphoneos/LGButton.build/Objects-normal/arm64/LGButton-OutputFileMap.json: -------------------------------------------------------------------------------- 1 | {"":{"swift-dependencies":"\/Users\/Renzo\/Projects\/iOS_projects\/LGButton-github\/LGButton\/Example\/build\/Pods.build\/Debug-iphoneos\/LGButton.build\/Objects-normal\/arm64\/LGButton-master.swiftdeps"},"\/Users\/Renzo\/Projects\/iOS_projects\/LGButton-github\/LGButton\/LGButton\/Classes\/ReplaceMe.swift":{"swiftmodule":"\/Users\/Renzo\/Projects\/iOS_projects\/LGButton-github\/LGButton\/Example\/build\/Pods.build\/Debug-iphoneos\/LGButton.build\/Objects-normal\/arm64\/ReplaceMe~partial.swiftmodule","object":"\/Users\/Renzo\/Projects\/iOS_projects\/LGButton-github\/LGButton\/Example\/build\/Pods.build\/Debug-iphoneos\/LGButton.build\/Objects-normal\/arm64\/ReplaceMe.o","llvm-bc":"\/Users\/Renzo\/Projects\/iOS_projects\/LGButton-github\/LGButton\/Example\/build\/Pods.build\/Debug-iphoneos\/LGButton.build\/Objects-normal\/arm64\/ReplaceMe.bc","diagnostics":"\/Users\/Renzo\/Projects\/iOS_projects\/LGButton-github\/LGButton\/Example\/build\/Pods.build\/Debug-iphoneos\/LGButton.build\/Objects-normal\/arm64\/ReplaceMe.dia","dependencies":"\/Users\/Renzo\/Projects\/iOS_projects\/LGButton-github\/LGButton\/Example\/build\/Pods.build\/Debug-iphoneos\/LGButton.build\/Objects-normal\/arm64\/ReplaceMe.d","swift-dependencies":"\/Users\/Renzo\/Projects\/iOS_projects\/LGButton-github\/LGButton\/Example\/build\/Pods.build\/Debug-iphoneos\/LGButton.build\/Objects-normal\/arm64\/ReplaceMe.swiftdeps"}} -------------------------------------------------------------------------------- /Example/build/Pods.build/Debug-iphoneos/LGButton.build/Objects-normal/arm64/LGButton.LinkFileList: -------------------------------------------------------------------------------- 1 | /Users/Renzo/Projects/iOS_projects/LGButton-github/LGButton/Example/build/Pods.build/Debug-iphoneos/LGButton.build/Objects-normal/arm64/LGButton-dummy.o 2 | /Users/Renzo/Projects/iOS_projects/LGButton-github/LGButton/Example/build/Pods.build/Debug-iphoneos/LGButton.build/Objects-normal/arm64/ReplaceMe.o 3 | /Users/Renzo/Projects/iOS_projects/LGButton-github/LGButton/Example/build/Pods.build/Debug-iphoneos/LGButton.build/Objects-normal/arm64/LGButton_vers.o 4 | -------------------------------------------------------------------------------- /Example/build/Pods.build/Debug-iphoneos/LGButton.build/Objects-normal/armv7/LGButton-OutputFileMap.json: -------------------------------------------------------------------------------- 1 | {"":{"swift-dependencies":"\/Users\/Renzo\/Projects\/iOS_projects\/LGButton-github\/LGButton\/Example\/build\/Pods.build\/Debug-iphoneos\/LGButton.build\/Objects-normal\/armv7\/LGButton-master.swiftdeps"},"\/Users\/Renzo\/Projects\/iOS_projects\/LGButton-github\/LGButton\/LGButton\/Classes\/ReplaceMe.swift":{"swiftmodule":"\/Users\/Renzo\/Projects\/iOS_projects\/LGButton-github\/LGButton\/Example\/build\/Pods.build\/Debug-iphoneos\/LGButton.build\/Objects-normal\/armv7\/ReplaceMe~partial.swiftmodule","object":"\/Users\/Renzo\/Projects\/iOS_projects\/LGButton-github\/LGButton\/Example\/build\/Pods.build\/Debug-iphoneos\/LGButton.build\/Objects-normal\/armv7\/ReplaceMe.o","llvm-bc":"\/Users\/Renzo\/Projects\/iOS_projects\/LGButton-github\/LGButton\/Example\/build\/Pods.build\/Debug-iphoneos\/LGButton.build\/Objects-normal\/armv7\/ReplaceMe.bc","diagnostics":"\/Users\/Renzo\/Projects\/iOS_projects\/LGButton-github\/LGButton\/Example\/build\/Pods.build\/Debug-iphoneos\/LGButton.build\/Objects-normal\/armv7\/ReplaceMe.dia","dependencies":"\/Users\/Renzo\/Projects\/iOS_projects\/LGButton-github\/LGButton\/Example\/build\/Pods.build\/Debug-iphoneos\/LGButton.build\/Objects-normal\/armv7\/ReplaceMe.d","swift-dependencies":"\/Users\/Renzo\/Projects\/iOS_projects\/LGButton-github\/LGButton\/Example\/build\/Pods.build\/Debug-iphoneos\/LGButton.build\/Objects-normal\/armv7\/ReplaceMe.swiftdeps"}} -------------------------------------------------------------------------------- /Example/build/Pods.build/Debug-iphoneos/LGButton.build/Objects-normal/armv7/LGButton.LinkFileList: -------------------------------------------------------------------------------- 1 | /Users/Renzo/Projects/iOS_projects/LGButton-github/LGButton/Example/build/Pods.build/Debug-iphoneos/LGButton.build/Objects-normal/armv7/LGButton-dummy.o 2 | /Users/Renzo/Projects/iOS_projects/LGButton-github/LGButton/Example/build/Pods.build/Debug-iphoneos/LGButton.build/Objects-normal/armv7/ReplaceMe.o 3 | /Users/Renzo/Projects/iOS_projects/LGButton-github/LGButton/Example/build/Pods.build/Debug-iphoneos/LGButton.build/Objects-normal/armv7/LGButton_vers.o 4 | -------------------------------------------------------------------------------- /Example/build/Pods.build/Debug-iphoneos/LGButton.build/dgph: -------------------------------------------------------------------------------- 1 | DGPH1.04 Apr 12 201700:54:13 /UsersRenzoProjects iOS_projectsLGButton-githubLGButtonExamplePods -------------------------------------------------------------------------------- /Example/build/Pods.build/Debug-iphoneos/LGButton.build/module.modulemap: -------------------------------------------------------------------------------- 1 | framework module LGButton { 2 | umbrella header "LGButton-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | 8 | module LGButton.Swift { 9 | header "LGButton-Swift.h" 10 | } 11 | -------------------------------------------------------------------------------- /Example/build/Pods.build/Debug-iphoneos/LGButton.build/swift-overrides.hmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loregr/LGButton/b58540eff6b1ca74aeffdff71cd5eb060a219469/Example/build/Pods.build/Debug-iphoneos/LGButton.build/swift-overrides.hmap -------------------------------------------------------------------------------- /Example/build/Pods.build/Debug-iphoneos/LGButton.build/unextended-module-overlay.yaml: -------------------------------------------------------------------------------- 1 | { 2 | 'version': 0, 3 | 'case-sensitive': 'false', 4 | 'roots': [{ 5 | 'type': 'directory', 6 | 'name': '/Users/Renzo/Projects/iOS_projects/LGButton-github/LGButton/Example/build/Debug-iphoneos/LGButton/LGButton.framework/Modules' 7 | 'contents': [{ 8 | 'type': 'file', 9 | 'name': 'module.modulemap', 10 | 'external-contents': '/Users/Renzo/Projects/iOS_projects/LGButton-github/LGButton/Example/build/Pods.build/Debug-iphoneos/LGButton.build/unextended-module.modulemap', 11 | }] 12 | }] 13 | } 14 | -------------------------------------------------------------------------------- /Example/build/Pods.build/Debug-iphoneos/LGButton.build/unextended-module.modulemap: -------------------------------------------------------------------------------- 1 | framework module LGButton { 2 | umbrella header "LGButton-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | 8 | module LGButton.__Swift { 9 | exclude header "LGButton-Swift.h" 10 | } 11 | -------------------------------------------------------------------------------- /Example/build/Pods.build/Debug-iphoneos/Pods-LGButton_Example.build/DerivedSources/Pods_LGButton_Example_vers.c: -------------------------------------------------------------------------------- 1 | extern const unsigned char Pods_LGButton_ExampleVersionString[]; 2 | extern const double Pods_LGButton_ExampleVersionNumber; 3 | 4 | const unsigned char Pods_LGButton_ExampleVersionString[] __attribute__ ((used)) = "@(#)PROGRAM:Pods_LGButton_Example PROJECT:Pods-1" "\n"; 5 | const double Pods_LGButton_ExampleVersionNumber __attribute__ ((used)) = (double)1.; 6 | -------------------------------------------------------------------------------- /Example/build/Pods.build/Debug-iphoneos/Pods-LGButton_Example.build/Objects-normal/arm64/Pods_LGButton_Example.LinkFileList: -------------------------------------------------------------------------------- 1 | /Users/Renzo/Projects/iOS_projects/LGButton-github/LGButton/Example/build/Pods.build/Debug-iphoneos/Pods-LGButton_Example.build/Objects-normal/arm64/Pods-LGButton_Example-dummy.o 2 | /Users/Renzo/Projects/iOS_projects/LGButton-github/LGButton/Example/build/Pods.build/Debug-iphoneos/Pods-LGButton_Example.build/Objects-normal/arm64/Pods_LGButton_Example_vers.o 3 | -------------------------------------------------------------------------------- /Example/build/Pods.build/Debug-iphoneos/Pods-LGButton_Example.build/Objects-normal/armv7/Pods_LGButton_Example.LinkFileList: -------------------------------------------------------------------------------- 1 | /Users/Renzo/Projects/iOS_projects/LGButton-github/LGButton/Example/build/Pods.build/Debug-iphoneos/Pods-LGButton_Example.build/Objects-normal/armv7/Pods-LGButton_Example-dummy.o 2 | /Users/Renzo/Projects/iOS_projects/LGButton-github/LGButton/Example/build/Pods.build/Debug-iphoneos/Pods-LGButton_Example.build/Objects-normal/armv7/Pods_LGButton_Example_vers.o 3 | -------------------------------------------------------------------------------- /Example/build/Pods.build/Debug-iphoneos/Pods-LGButton_Example.build/Pods_LGButton_Example-all-non-framework-target-headers.hmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loregr/LGButton/b58540eff6b1ca74aeffdff71cd5eb060a219469/Example/build/Pods.build/Debug-iphoneos/Pods-LGButton_Example.build/Pods_LGButton_Example-all-non-framework-target-headers.hmap -------------------------------------------------------------------------------- /Example/build/Pods.build/Debug-iphoneos/Pods-LGButton_Example.build/Pods_LGButton_Example-all-target-headers.hmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loregr/LGButton/b58540eff6b1ca74aeffdff71cd5eb060a219469/Example/build/Pods.build/Debug-iphoneos/Pods-LGButton_Example.build/Pods_LGButton_Example-all-target-headers.hmap -------------------------------------------------------------------------------- /Example/build/Pods.build/Debug-iphoneos/Pods-LGButton_Example.build/Pods_LGButton_Example-generated-files.hmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loregr/LGButton/b58540eff6b1ca74aeffdff71cd5eb060a219469/Example/build/Pods.build/Debug-iphoneos/Pods-LGButton_Example.build/Pods_LGButton_Example-generated-files.hmap -------------------------------------------------------------------------------- /Example/build/Pods.build/Debug-iphoneos/Pods-LGButton_Example.build/Pods_LGButton_Example-own-target-headers.hmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loregr/LGButton/b58540eff6b1ca74aeffdff71cd5eb060a219469/Example/build/Pods.build/Debug-iphoneos/Pods-LGButton_Example.build/Pods_LGButton_Example-own-target-headers.hmap -------------------------------------------------------------------------------- /Example/build/Pods.build/Debug-iphoneos/Pods-LGButton_Example.build/Pods_LGButton_Example-project-headers.hmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loregr/LGButton/b58540eff6b1ca74aeffdff71cd5eb060a219469/Example/build/Pods.build/Debug-iphoneos/Pods-LGButton_Example.build/Pods_LGButton_Example-project-headers.hmap -------------------------------------------------------------------------------- /Example/build/Pods.build/Debug-iphoneos/Pods-LGButton_Example.build/Pods_LGButton_Example.hmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loregr/LGButton/b58540eff6b1ca74aeffdff71cd5eb060a219469/Example/build/Pods.build/Debug-iphoneos/Pods-LGButton_Example.build/Pods_LGButton_Example.hmap -------------------------------------------------------------------------------- /Example/build/Pods.build/Debug-iphoneos/Pods-LGButton_Example.build/dgph: -------------------------------------------------------------------------------- 1 | DGPH1.04 Apr 12 201700:54:13 /UsersRenzoProjects iOS_projectsLGButton-githubLGButtonExamplePods -------------------------------------------------------------------------------- /Example/build/Pods.build/Debug-iphoneos/Pods-LGButton_Example.build/module.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_LGButton_Example { 2 | umbrella header "Pods-LGButton_Example-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Example/build/Pods.build/Debug-iphoneos/Pods-LGButton_Tests.build/DerivedSources/Pods_LGButton_Tests_vers.c: -------------------------------------------------------------------------------- 1 | extern const unsigned char Pods_LGButton_TestsVersionString[]; 2 | extern const double Pods_LGButton_TestsVersionNumber; 3 | 4 | const unsigned char Pods_LGButton_TestsVersionString[] __attribute__ ((used)) = "@(#)PROGRAM:Pods_LGButton_Tests PROJECT:Pods-1" "\n"; 5 | const double Pods_LGButton_TestsVersionNumber __attribute__ ((used)) = (double)1.; 6 | -------------------------------------------------------------------------------- /Example/build/Pods.build/Debug-iphoneos/Pods-LGButton_Tests.build/Objects-normal/arm64/Pods_LGButton_Tests.LinkFileList: -------------------------------------------------------------------------------- 1 | /Users/Renzo/Projects/iOS_projects/LGButton-github/LGButton/Example/build/Pods.build/Debug-iphoneos/Pods-LGButton_Tests.build/Objects-normal/arm64/Pods-LGButton_Tests-dummy.o 2 | /Users/Renzo/Projects/iOS_projects/LGButton-github/LGButton/Example/build/Pods.build/Debug-iphoneos/Pods-LGButton_Tests.build/Objects-normal/arm64/Pods_LGButton_Tests_vers.o 3 | -------------------------------------------------------------------------------- /Example/build/Pods.build/Debug-iphoneos/Pods-LGButton_Tests.build/Objects-normal/armv7/Pods_LGButton_Tests.LinkFileList: -------------------------------------------------------------------------------- 1 | /Users/Renzo/Projects/iOS_projects/LGButton-github/LGButton/Example/build/Pods.build/Debug-iphoneos/Pods-LGButton_Tests.build/Objects-normal/armv7/Pods-LGButton_Tests-dummy.o 2 | /Users/Renzo/Projects/iOS_projects/LGButton-github/LGButton/Example/build/Pods.build/Debug-iphoneos/Pods-LGButton_Tests.build/Objects-normal/armv7/Pods_LGButton_Tests_vers.o 3 | -------------------------------------------------------------------------------- /Example/build/Pods.build/Debug-iphoneos/Pods-LGButton_Tests.build/Pods_LGButton_Tests-all-non-framework-target-headers.hmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loregr/LGButton/b58540eff6b1ca74aeffdff71cd5eb060a219469/Example/build/Pods.build/Debug-iphoneos/Pods-LGButton_Tests.build/Pods_LGButton_Tests-all-non-framework-target-headers.hmap -------------------------------------------------------------------------------- /Example/build/Pods.build/Debug-iphoneos/Pods-LGButton_Tests.build/Pods_LGButton_Tests-all-target-headers.hmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loregr/LGButton/b58540eff6b1ca74aeffdff71cd5eb060a219469/Example/build/Pods.build/Debug-iphoneos/Pods-LGButton_Tests.build/Pods_LGButton_Tests-all-target-headers.hmap -------------------------------------------------------------------------------- /Example/build/Pods.build/Debug-iphoneos/Pods-LGButton_Tests.build/Pods_LGButton_Tests-generated-files.hmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loregr/LGButton/b58540eff6b1ca74aeffdff71cd5eb060a219469/Example/build/Pods.build/Debug-iphoneos/Pods-LGButton_Tests.build/Pods_LGButton_Tests-generated-files.hmap -------------------------------------------------------------------------------- /Example/build/Pods.build/Debug-iphoneos/Pods-LGButton_Tests.build/Pods_LGButton_Tests-own-target-headers.hmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loregr/LGButton/b58540eff6b1ca74aeffdff71cd5eb060a219469/Example/build/Pods.build/Debug-iphoneos/Pods-LGButton_Tests.build/Pods_LGButton_Tests-own-target-headers.hmap -------------------------------------------------------------------------------- /Example/build/Pods.build/Debug-iphoneos/Pods-LGButton_Tests.build/Pods_LGButton_Tests-project-headers.hmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loregr/LGButton/b58540eff6b1ca74aeffdff71cd5eb060a219469/Example/build/Pods.build/Debug-iphoneos/Pods-LGButton_Tests.build/Pods_LGButton_Tests-project-headers.hmap -------------------------------------------------------------------------------- /Example/build/Pods.build/Debug-iphoneos/Pods-LGButton_Tests.build/Pods_LGButton_Tests.hmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loregr/LGButton/b58540eff6b1ca74aeffdff71cd5eb060a219469/Example/build/Pods.build/Debug-iphoneos/Pods-LGButton_Tests.build/Pods_LGButton_Tests.hmap -------------------------------------------------------------------------------- /Example/build/Pods.build/Debug-iphoneos/Pods-LGButton_Tests.build/dgph: -------------------------------------------------------------------------------- 1 | DGPH1.04 Apr 12 201700:54:13 /UsersRenzoProjects iOS_projectsLGButton-githubLGButtonExamplePods -------------------------------------------------------------------------------- /Example/build/Pods.build/Debug-iphoneos/Pods-LGButton_Tests.build/module.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_LGButton_Tests { 2 | umbrella header "Pods-LGButton_Tests-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /LGButton.podspec: -------------------------------------------------------------------------------- 1 | Pod::Spec.new do |s| 2 | s.name = 'LGButton' 3 | s.version = '1.1.6' 4 | s.summary = 'A fully customisable subclass of the native UIControl which allows you to create beautiful buttons without writing any line of code.' 5 | s.homepage = 'https://cocoapods.org/pods/LGButton' 6 | s.license = { :type => 'MIT', :file => 'LICENSE.md' } 7 | s.author = { 'Lorenzo Greco' => 'lorenzo.gr90@gmail.com' } 8 | s.source = { :git => 'https://github.com/loregr/LGButton.git', :tag => "#{s.version}" } 9 | 10 | s.ios.deployment_target = '9.0' 11 | 12 | s.source_files = 'LGButton/Classes/**/*.{swift}' 13 | s.resources = "LGButton/Resources/*" 14 | 15 | end 16 | -------------------------------------------------------------------------------- /LGButton/.gitignore: -------------------------------------------------------------------------------- 1 | # OS X 2 | .DS_Store 3 | 4 | # Xcode 5 | build/ 6 | *.pbxuser 7 | !default.pbxuser 8 | *.mode1v3 9 | !default.mode1v3 10 | *.mode2v3 11 | !default.mode2v3 12 | *.perspectivev3 13 | !default.perspectivev3 14 | xcuserdata/ 15 | *.xccheckout 16 | profile 17 | *.moved-aside 18 | DerivedData 19 | *.hmap 20 | *.ipa 21 | 22 | # Bundler 23 | .bundle 24 | 25 | Carthage 26 | # We recommend against adding the Pods directory to your .gitignore. However 27 | # you should judge for yourself, the pros and cons are mentioned at: 28 | # http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control 29 | # 30 | # Note: if you ignore the Pods directory, make sure to uncomment 31 | # `pod install` in .travis.yml 32 | # 33 | # Pods/ 34 | -------------------------------------------------------------------------------- /LGButton/.travis.yml: -------------------------------------------------------------------------------- 1 | # references: 2 | # * http://www.objc.io/issue-6/travis-ci.html 3 | # * https://github.com/supermarin/xcpretty#usage 4 | 5 | osx_image: xcode7.3 6 | language: objective-c 7 | # cache: cocoapods 8 | # podfile: Example/Podfile 9 | # before_install: 10 | # - gem install cocoapods # Since Travis is not always on latest version 11 | # - pod install --project-directory=Example 12 | script: 13 | - set -o pipefail && xcodebuild test -workspace Example/LGButton.xcworkspace -scheme LGButton-Example -sdk iphonesimulator9.3 ONLY_ACTIVE_ARCH=NO | xcpretty 14 | - pod lib lint 15 | -------------------------------------------------------------------------------- /LGButton/Assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loregr/LGButton/b58540eff6b1ca74aeffdff71cd5eb060a219469/LGButton/Assets/.gitkeep -------------------------------------------------------------------------------- /LGButton/Classes/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loregr/LGButton/b58540eff6b1ca74aeffdff71cd5eb060a219469/LGButton/Classes/.gitkeep -------------------------------------------------------------------------------- /LGButton/Classes/SwiftIconFont/FontLoader.swift: -------------------------------------------------------------------------------- 1 | // 2 | // FontLoader.swift 3 | // SwiftIconFont 4 | // 5 | // Created by Sedat Ciftci on 18/03/16. 6 | // Copyright © 2016 Sedat Gokbek Ciftci. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import Foundation 11 | import CoreText 12 | 13 | class FontLoader: NSObject { 14 | class func loadFont(_ fontName: String) { 15 | 16 | let bundle = Bundle(for: FontLoader.self) 17 | var fontURL = URL(string: "") 18 | 19 | if let url = getFontUrl(fontName, bundle: bundle) { 20 | fontURL = url 21 | }else if let url = getFontUrl(fontName, bundle: Bundle.main) { 22 | fontURL = url 23 | } 24 | do 25 | { 26 | let data = try Data(contentsOf: fontURL!) 27 | 28 | let provider = CGDataProvider(data: data as CFData) 29 | let font = CGFont.init(provider!) 30 | 31 | var error: Unmanaged? 32 | if !CTFontManagerRegisterGraphicsFont(font!, &error) { 33 | let errorDescription: CFString = CFErrorCopyDescription(error!.takeUnretainedValue()) 34 | let nsError = error!.takeUnretainedValue() as AnyObject as! NSError 35 | NSException(name: NSExceptionName.internalInconsistencyException, reason: errorDescription as String, userInfo: [NSUnderlyingErrorKey: nsError]).raise() 36 | } 37 | } catch { 38 | 39 | } 40 | } 41 | 42 | class func getFontUrl(_ fontName: String, bundle: Bundle) -> URL? { 43 | var fontURL = URL(string: "") 44 | for filePath : String in bundle.paths(forResourcesOfType: "ttf", inDirectory: nil) { 45 | let filename = NSURL(fileURLWithPath: filePath).lastPathComponent! 46 | if filename.lowercased().range(of: fontName.lowercased()) != nil { 47 | fontURL = NSURL(fileURLWithPath: filePath) as URL 48 | } 49 | } 50 | return fontURL 51 | } 52 | } 53 | 54 | 55 | -------------------------------------------------------------------------------- /LGButton/Classes/SwiftIconFont/FontMap.swift: -------------------------------------------------------------------------------- 1 | 2 | // 3 | // FontMap.swift 4 | // LGButton 5 | // 6 | // Created by philZhang. 7 | // Copyright 2018 philZhang. All rights reserved. 8 | // 9 | public enum FontMap { 10 | public static let __fontName__ = "map-icons" 11 | public static let __fileName__ = "map-icons" 12 | 13 | 14 | public static let `map_icon_abseiling` = "map.icon.abseiling"; 15 | public static let `map_icon_accounting` = "map.icon.accounting"; 16 | public static let `map_icon_airport` = "map.icon.airport"; 17 | public static let `map_icon_amusement_park` = "map.icon.amusement.park"; 18 | public static let `map_icon_aquarium` = "map.icon.aquarium"; 19 | public static let `map_icon_archery` = "map.icon.archery"; 20 | public static let `map_icon_art_gallery` = "map.icon.art.gallery"; 21 | public static let `map_icon_assistive_listening_system` = "map.icon.assistive.listening.system"; 22 | public static let `map_icon_atm` = "map.icon.atm"; 23 | public static let `map_icon_audio_description` = "map.icon.audio.description"; 24 | public static let `map_icon_bakery` = "map.icon.bakery"; 25 | public static let `map_icon_bank` = "map.icon.bank"; 26 | public static let `map_icon_bar` = "map.icon.bar"; 27 | public static let `map_icon_baseball` = "map.icon.baseball"; 28 | public static let `map_icon_beauty_salon` = "map.icon.beauty.salon"; 29 | public static let `map_icon_bicycle_store` = "map.icon.bicycle.store"; 30 | public static let `map_icon_bicycling` = "map.icon.bicycling"; 31 | public static let `map_icon_boat_ramp` = "map.icon.boat.ramp"; 32 | public static let `map_icon_boat_tour` = "map.icon.boat.tour"; 33 | public static let `map_icon_boating` = "map.icon.boating"; 34 | public static let `map_icon_book_store` = "map.icon.book.store"; 35 | public static let `map_icon_bowling_alley` = "map.icon.bowling.alley"; 36 | public static let `map_icon_braille` = "map.icon.braille"; 37 | public static let `map_icon_bus_station` = "map.icon.bus.station"; 38 | public static let `map_icon_cafe` = "map.icon.cafe"; 39 | public static let `map_icon_campground` = "map.icon.campground"; 40 | public static let `map_icon_canoe` = "map.icon.canoe"; 41 | public static let `map_icon_car_dealer` = "map.icon.car.dealer"; 42 | public static let `map_icon_car_rental` = "map.icon.car.rental"; 43 | public static let `map_icon_car_repair` = "map.icon.car.repair"; 44 | public static let `map_icon_car_wash` = "map.icon.car.wash"; 45 | public static let `map_icon_casino` = "map.icon.casino"; 46 | public static let `map_icon_cemetery` = "map.icon.cemetery"; 47 | public static let `map_icon_chairlift` = "map.icon.chairlift"; 48 | public static let `map_icon_church` = "map.icon.church"; 49 | public static let `map_icon_circle` = "map.icon.circle"; 50 | public static let `map_icon_city_hall` = "map.icon.city.hall"; 51 | public static let `map_icon_climbing` = "map.icon.climbing"; 52 | public static let `map_icon_closed_captioning` = "map.icon.closed.captioning"; 53 | public static let `map_icon_clothing_store` = "map.icon.clothing.store"; 54 | public static let `map_icon_compass` = "map.icon.compass"; 55 | public static let `map_icon_convenience_store` = "map.icon.convenience.store"; 56 | public static let `map_icon_courthouse` = "map.icon.courthouse"; 57 | public static let `map_icon_cross_country_skiing` = "map.icon.cross.country.skiing"; 58 | public static let `map_icon_crosshairs` = "map.icon.crosshairs"; 59 | public static let `map_icon_dentist` = "map.icon.dentist"; 60 | public static let `map_icon_department_store` = "map.icon.department.store"; 61 | public static let `map_icon_diving` = "map.icon.diving"; 62 | public static let `map_icon_doctor` = "map.icon.doctor"; 63 | public static let `map_icon_electrician` = "map.icon.electrician"; 64 | public static let `map_icon_electronics_store` = "map.icon.electronics.store"; 65 | public static let `map_icon_embassy` = "map.icon.embassy"; 66 | public static let `map_icon_expand` = "map.icon.expand"; 67 | public static let `map_icon_female` = "map.icon.female"; 68 | public static let `map_icon_finance` = "map.icon.finance"; 69 | public static let `map_icon_fire_station` = "map.icon.fire.station"; 70 | public static let `map_icon_fish_cleaning` = "map.icon.fish.cleaning"; 71 | public static let `map_icon_fishing_pier` = "map.icon.fishing.pier"; 72 | public static let `map_icon_fishing` = "map.icon.fishing"; 73 | public static let `map_icon_florist` = "map.icon.florist"; 74 | public static let `map_icon_food` = "map.icon.food"; 75 | public static let `map_icon_fullscreen` = "map.icon.fullscreen"; 76 | public static let `map_icon_funeral_home` = "map.icon.funeral.home"; 77 | public static let `map_icon_furniture_store` = "map.icon.furniture.store"; 78 | public static let `map_icon_gas_station` = "map.icon.gas.station"; 79 | public static let `map_icon_general_contractor` = "map.icon.general.contractor"; 80 | public static let `map_icon_golf` = "map.icon.golf"; 81 | public static let `map_icon_grocery_or_supermarket` = "map.icon.grocery.or.supermarket"; 82 | public static let `map_icon_gym` = "map.icon.gym"; 83 | public static let `map_icon_hair_care` = "map.icon.hair.care"; 84 | public static let `map_icon_hang_gliding` = "map.icon.hang.gliding"; 85 | public static let `map_icon_hardware_store` = "map.icon.hardware.store"; 86 | public static let `map_icon_health` = "map.icon.health"; 87 | public static let `map_icon_hindu_temple` = "map.icon.hindu.temple"; 88 | public static let `map_icon_horse_riding` = "map.icon.horse.riding"; 89 | public static let `map_icon_hospital` = "map.icon.hospital"; 90 | public static let `map_icon_ice_fishing` = "map.icon.ice.fishing"; 91 | public static let `map_icon_ice_skating` = "map.icon.ice.skating"; 92 | public static let `map_icon_inline_skating` = "map.icon.inline.skating"; 93 | public static let `map_icon_insurance_agency` = "map.icon.insurance.agency"; 94 | public static let `map_icon_jet_skiing` = "map.icon.jet.skiing"; 95 | public static let `map_icon_jewelry_store` = "map.icon.jewelry.store"; 96 | public static let `map_icon_kayaking` = "map.icon.kayaking"; 97 | public static let `map_icon_laundry` = "map.icon.laundry"; 98 | public static let `map_icon_lawyer` = "map.icon.lawyer"; 99 | public static let `map_icon_library` = "map.icon.library"; 100 | public static let `map_icon_liquor_store` = "map.icon.liquor.store"; 101 | public static let `map_icon_local_government` = "map.icon.local.government"; 102 | public static let `map_icon_location_arrow` = "map.icon.location.arrow"; 103 | public static let `map_icon_locksmith` = "map.icon.locksmith"; 104 | public static let `map_icon_lodging` = "map.icon.lodging"; 105 | public static let `map_icon_low_vision_access` = "map.icon.low.vision.access"; 106 | public static let `map_icon_male` = "map.icon.male"; 107 | public static let `map_icon_map_pin` = "map.icon.map.pin"; 108 | public static let `map_icon_marina` = "map.icon.marina"; 109 | public static let `map_icon_mosque` = "map.icon.mosque"; 110 | public static let `map_icon_motobike_trail` = "map.icon.motobike.trail"; 111 | public static let `map_icon_movie_rental` = "map.icon.movie.rental"; 112 | public static let `map_icon_movie_theater` = "map.icon.movie.theater"; 113 | public static let `map_icon_moving_company` = "map.icon.moving.company"; 114 | public static let `map_icon_museum` = "map.icon.museum"; 115 | public static let `map_icon_natural_feature` = "map.icon.natural.feature"; 116 | public static let `map_icon_night_club` = "map.icon.night.club"; 117 | public static let `map_icon_open_captioning` = "map.icon.open.captioning"; 118 | public static let `map_icon_painter` = "map.icon.painter"; 119 | public static let `map_icon_park` = "map.icon.park"; 120 | public static let `map_icon_parking` = "map.icon.parking"; 121 | public static let `map_icon_pet_store` = "map.icon.pet.store"; 122 | public static let `map_icon_pharmacy` = "map.icon.pharmacy"; 123 | public static let `map_icon_physiotherapist` = "map.icon.physiotherapist"; 124 | public static let `map_icon_place_of_worship` = "map.icon.place.of.worship"; 125 | public static let `map_icon_playground` = "map.icon.playground"; 126 | public static let `map_icon_plumber` = "map.icon.plumber"; 127 | public static let `map_icon_point_of_interest` = "map.icon.point.of.interest"; 128 | public static let `map_icon_police` = "map.icon.police"; 129 | public static let `map_icon_political` = "map.icon.political"; 130 | public static let `map_icon_post_box` = "map.icon.post.box"; 131 | public static let `map_icon_post_office` = "map.icon.post.office"; 132 | public static let `map_icon_postal_code_prefix` = "map.icon.postal.code.prefix"; 133 | public static let `map_icon_postal_code` = "map.icon.postal.code"; 134 | public static let `map_icon_rafting` = "map.icon.rafting"; 135 | public static let `map_icon_real_estate_agency` = "map.icon.real.estate.agency"; 136 | public static let `map_icon_restaurant` = "map.icon.restaurant"; 137 | public static let `map_icon_roofing_contractor` = "map.icon.roofing.contractor"; 138 | public static let `map_icon_route_pin` = "map.icon.route.pin"; 139 | public static let `map_icon_route` = "map.icon.route"; 140 | public static let `map_icon_rv_park` = "map.icon.rv.park"; 141 | public static let `map_icon_sailing` = "map.icon.sailing"; 142 | public static let `map_icon_school` = "map.icon.school"; 143 | public static let `map_icon_scuba_diving` = "map.icon.scuba.diving"; 144 | public static let `map_icon_search` = "map.icon.search"; 145 | public static let `map_icon_shield` = "map.icon.shield"; 146 | public static let `map_icon_shopping_mall` = "map.icon.shopping.mall"; 147 | public static let `map_icon_sign_language` = "map.icon.sign.language"; 148 | public static let `map_icon_skateboarding` = "map.icon.skateboarding"; 149 | public static let `map_icon_ski_jumping` = "map.icon.ski.jumping"; 150 | public static let `map_icon_skiing` = "map.icon.skiing"; 151 | public static let `map_icon_sledding` = "map.icon.sledding"; 152 | public static let `map_icon_snow_shoeing` = "map.icon.snow.shoeing"; 153 | public static let `map_icon_snow` = "map.icon.snow"; 154 | public static let `map_icon_snowboarding` = "map.icon.snowboarding"; 155 | public static let `map_icon_snowmobile` = "map.icon.snowmobile"; 156 | public static let `map_icon_spa` = "map.icon.spa"; 157 | public static let `map_icon_square_pin` = "map.icon.square.pin"; 158 | public static let `map_icon_square_rounded` = "map.icon.square.rounded"; 159 | public static let `map_icon_square` = "map.icon.square"; 160 | public static let `map_icon_stadium` = "map.icon.stadium"; 161 | public static let `map_icon_storage` = "map.icon.storage"; 162 | public static let `map_icon_store` = "map.icon.store"; 163 | public static let `map_icon_subway_station` = "map.icon.subway.station"; 164 | public static let `map_icon_surfing` = "map.icon.surfing"; 165 | public static let `map_icon_swimming` = "map.icon.swimming"; 166 | public static let `map_icon_synagogue` = "map.icon.synagogue"; 167 | public static let `map_icon_taxi_stand` = "map.icon.taxi.stand"; 168 | public static let `map_icon_tennis` = "map.icon.tennis"; 169 | public static let `map_icon_toilet` = "map.icon.toilet"; 170 | public static let `map_icon_trail_walking` = "map.icon.trail.walking"; 171 | public static let `map_icon_train_station` = "map.icon.train.station"; 172 | public static let `map_icon_transit_station` = "map.icon.transit.station"; 173 | public static let `map_icon_travel_agency` = "map.icon.travel.agency"; 174 | public static let `map_icon_unisex` = "map.icon.unisex"; 175 | public static let `map_icon_university` = "map.icon.university"; 176 | public static let `map_icon_veterinary_care` = "map.icon.veterinary.care"; 177 | public static let `map_icon_viewing` = "map.icon.viewing"; 178 | public static let `map_icon_volume_control_telephone` = "map.icon.volume.control.telephone"; 179 | public static let `map_icon_walking` = "map.icon.walking"; 180 | public static let `map_icon_waterskiing` = "map.icon.waterskiing"; 181 | public static let `map_icon_whale_watching` = "map.icon.whale.watching"; 182 | public static let `map_icon_wheelchair` = "map.icon.wheelchair"; 183 | public static let `map_icon_wind_surfing` = "map.icon.wind.surfing"; 184 | public static let `map_icon_zoo` = "map.icon.zoo"; 185 | public static let `map_icon_zoom_in_alt` = "map.icon.zoom.in.alt"; 186 | public static let `map_icon_zoom_in` = "map.icon.zoom.in"; 187 | public static let `map_icon_zoom_out_alt` = "map.icon.zoom.out.alt"; 188 | public static let `map_icon_zoom_out` = "map.icon.zoom.out"; 189 | 190 | public static let icons = ["map.icon.abseiling":"\u{e800}", "map.icon.accounting":"\u{e801}", "map.icon.airport":"\u{e802}", "map.icon.amusement.park":"\u{e803}", "map.icon.aquarium":"\u{e804}", "map.icon.archery":"\u{e805}", "map.icon.art.gallery":"\u{e806}", "map.icon.assistive.listening.system":"\u{e807}", "map.icon.atm":"\u{e808}", "map.icon.audio.description":"\u{e809}", "map.icon.bakery":"\u{e80a}", "map.icon.bank":"\u{e80b}", "map.icon.bar":"\u{e80c}", "map.icon.baseball":"\u{e80d}", "map.icon.beauty.salon":"\u{e80e}", "map.icon.bicycle.store":"\u{e80f}", "map.icon.bicycling":"\u{e810}", "map.icon.boat.ramp":"\u{e811}", "map.icon.boat.tour":"\u{e812}", "map.icon.boating":"\u{e813}", "map.icon.book.store":"\u{e814}", "map.icon.bowling.alley":"\u{e815}", "map.icon.braille":"\u{e816}", "map.icon.bus.station":"\u{e817}", "map.icon.cafe":"\u{e818}", "map.icon.campground":"\u{e819}", "map.icon.canoe":"\u{e81a}", "map.icon.car.dealer":"\u{e81b}", "map.icon.car.rental":"\u{e81c}", "map.icon.car.repair":"\u{e81d}", "map.icon.car.wash":"\u{e81e}", "map.icon.casino":"\u{e81f}", "map.icon.cemetery":"\u{e820}", "map.icon.chairlift":"\u{e821}", "map.icon.church":"\u{e822}", "map.icon.circle":"\u{e823}", "map.icon.city.hall":"\u{e824}", "map.icon.climbing":"\u{e825}", "map.icon.closed.captioning":"\u{e826}", "map.icon.clothing.store":"\u{e827}", "map.icon.compass":"\u{e828}", "map.icon.convenience.store":"\u{e829}", "map.icon.courthouse":"\u{e82a}", "map.icon.cross.country.skiing":"\u{e82b}", "map.icon.crosshairs":"\u{e82c}", "map.icon.dentist":"\u{e82d}", "map.icon.department.store":"\u{e82e}", "map.icon.diving":"\u{e82f}", "map.icon.doctor":"\u{e830}", "map.icon.electrician":"\u{e831}", "map.icon.electronics.store":"\u{e832}", "map.icon.embassy":"\u{e833}", "map.icon.expand":"\u{e834}", "map.icon.female":"\u{e835}", "map.icon.finance":"\u{e836}", "map.icon.fire.station":"\u{e837}", "map.icon.fish.cleaning":"\u{e838}", "map.icon.fishing.pier":"\u{e839}", "map.icon.fishing":"\u{e83a}", "map.icon.florist":"\u{e83b}", "map.icon.food":"\u{e83c}", "map.icon.fullscreen":"\u{e83d}", "map.icon.funeral.home":"\u{e83e}", "map.icon.furniture.store":"\u{e83f}", "map.icon.gas.station":"\u{e840}", "map.icon.general.contractor":"\u{e841}", "map.icon.golf":"\u{e842}", "map.icon.grocery.or.supermarket":"\u{e843}", "map.icon.gym":"\u{e844}", "map.icon.hair.care":"\u{e845}", "map.icon.hang.gliding":"\u{e846}", "map.icon.hardware.store":"\u{e847}", "map.icon.health":"\u{e848}", "map.icon.hindu.temple":"\u{e849}", "map.icon.horse.riding":"\u{e84a}", "map.icon.hospital":"\u{e84b}", "map.icon.ice.fishing":"\u{e84c}", "map.icon.ice.skating":"\u{e84d}", "map.icon.inline.skating":"\u{e84e}", "map.icon.insurance.agency":"\u{e84f}", "map.icon.jet.skiing":"\u{e850}", "map.icon.jewelry.store":"\u{e851}", "map.icon.kayaking":"\u{e852}", "map.icon.laundry":"\u{e853}", "map.icon.lawyer":"\u{e854}", "map.icon.library":"\u{e855}", "map.icon.liquor.store":"\u{e856}", "map.icon.local.government":"\u{e857}", "map.icon.location.arrow":"\u{e858}", "map.icon.locksmith":"\u{e859}", "map.icon.lodging":"\u{e85a}", "map.icon.low.vision.access":"\u{e85b}", "map.icon.male":"\u{e85c}", "map.icon.map.pin":"\u{e85d}", "map.icon.marina":"\u{e85e}", "map.icon.mosque":"\u{e85f}", "map.icon.motobike.trail":"\u{e860}", "map.icon.movie.rental":"\u{e861}", "map.icon.movie.theater":"\u{e862}", "map.icon.moving.company":"\u{e863}", "map.icon.museum":"\u{e864}", "map.icon.natural.feature":"\u{e865}", "map.icon.night.club":"\u{e866}", "map.icon.open.captioning":"\u{e867}", "map.icon.painter":"\u{e868}", "map.icon.park":"\u{e869}", "map.icon.parking":"\u{e86a}", "map.icon.pet.store":"\u{e86b}", "map.icon.pharmacy":"\u{e86c}", "map.icon.physiotherapist":"\u{e86d}", "map.icon.place.of.worship":"\u{e86e}", "map.icon.playground":"\u{e86f}", "map.icon.plumber":"\u{e870}", "map.icon.point.of.interest":"\u{e871}", "map.icon.police":"\u{e872}", "map.icon.political":"\u{e873}", "map.icon.post.box":"\u{e874}", "map.icon.post.office":"\u{e875}", "map.icon.postal.code.prefix":"\u{e876}", "map.icon.postal.code":"\u{e877}", "map.icon.rafting":"\u{e878}", "map.icon.real.estate.agency":"\u{e879}", "map.icon.restaurant":"\u{e87a}", "map.icon.roofing.contractor":"\u{e87b}", "map.icon.route.pin":"\u{e87c}", "map.icon.route":"\u{e87d}", "map.icon.rv.park":"\u{e87e}", "map.icon.sailing":"\u{e87f}", "map.icon.school":"\u{e880}", "map.icon.scuba.diving":"\u{e881}", "map.icon.search":"\u{e882}", "map.icon.shield":"\u{e883}", "map.icon.shopping.mall":"\u{e884}", "map.icon.sign.language":"\u{e885}", "map.icon.skateboarding":"\u{e886}", "map.icon.ski.jumping":"\u{e887}", "map.icon.skiing":"\u{e888}", "map.icon.sledding":"\u{e889}", "map.icon.snow.shoeing":"\u{e88a}", "map.icon.snow":"\u{e88b}", "map.icon.snowboarding":"\u{e88c}", "map.icon.snowmobile":"\u{e88d}", "map.icon.spa":"\u{e88e}", "map.icon.square.pin":"\u{e88f}", "map.icon.square.rounded":"\u{e890}", "map.icon.square":"\u{e891}", "map.icon.stadium":"\u{e892}", "map.icon.storage":"\u{e893}", "map.icon.store":"\u{e894}", "map.icon.subway.station":"\u{e895}", "map.icon.surfing":"\u{e896}", "map.icon.swimming":"\u{e897}", "map.icon.synagogue":"\u{e898}", "map.icon.taxi.stand":"\u{e899}", "map.icon.tennis":"\u{e89a}", "map.icon.toilet":"\u{e89b}", "map.icon.trail.walking":"\u{e89c}", "map.icon.train.station":"\u{e89d}", "map.icon.transit.station":"\u{e89e}", "map.icon.travel.agency":"\u{e89f}", "map.icon.unisex":"\u{e8a0}", "map.icon.university":"\u{e8a1}", "map.icon.veterinary.care":"\u{e8a2}", "map.icon.viewing":"\u{e8a3}", "map.icon.volume.control.telephone":"\u{e8a4}", "map.icon.walking":"\u{e8a5}", "map.icon.waterskiing":"\u{e8a6}", "map.icon.whale.watching":"\u{e8a7}", "map.icon.wheelchair":"\u{e8a8}", "map.icon.wind.surfing":"\u{e8a9}", "map.icon.zoo":"\u{e8aa}", "map.icon.zoom.in.alt":"\u{e8ab}", "map.icon.zoom.in":"\u{e8ac}", "map.icon.zoom.out.alt":"\u{e8ad}", "map.icon.zoom.out":"\u{e8ae}"] 191 | } 192 | -------------------------------------------------------------------------------- /LGButton/Classes/SwiftIconFont/FontOct.swift: -------------------------------------------------------------------------------- 1 | 2 | // 3 | // FontOct.swift 4 | // LGButton 5 | // 6 | // Created by philZhang. 7 | // Copyright 2018 philZhang. All rights reserved. 8 | // 9 | public enum FontOct { 10 | public static let __fontName__ = "octicons" 11 | public static let __fileName__ = "octicons" 12 | 13 | 14 | public static let `alert` = "alert"; 15 | public static let `alignment_align` = "alignment-align"; 16 | public static let `alignment_aligned_to` = "alignment-aligned-to"; 17 | public static let `alignment_unalign` = "alignment-unalign"; 18 | public static let `arrow_down` = "arrow-down"; 19 | public static let `arrow_left` = "arrow-left"; 20 | public static let `arrow_right` = "arrow-right"; 21 | public static let `arrow_small_down` = "arrow-small-down"; 22 | public static let `arrow_small_left` = "arrow-small-left"; 23 | public static let `arrow_small_right` = "arrow-small-right"; 24 | public static let `arrow_small_up` = "arrow-small-up"; 25 | public static let `arrow_up` = "arrow-up"; 26 | public static let `beer` = "beer"; 27 | public static let `book` = "book"; 28 | public static let `bookmark` = "bookmark"; 29 | public static let `briefcase` = "briefcase"; 30 | public static let `broadcast` = "broadcast"; 31 | public static let `browser` = "browser"; 32 | public static let `bug` = "bug"; 33 | public static let `calendar` = "calendar"; 34 | public static let `check` = "check"; 35 | public static let `checklist` = "checklist"; 36 | public static let `chevron_down` = "chevron-down"; 37 | public static let `chevron_left` = "chevron-left"; 38 | public static let `chevron_right` = "chevron-right"; 39 | public static let `chevron_up` = "chevron-up"; 40 | public static let `circle_slash` = "circle-slash"; 41 | public static let `circuit_board` = "circuit-board"; 42 | public static let `clippy` = "clippy"; 43 | public static let `clock` = "clock"; 44 | public static let `cloud_download` = "cloud-download"; 45 | public static let `cloud_upload` = "cloud-upload"; 46 | public static let `code` = "code"; 47 | public static let `color_mode` = "color-mode"; 48 | public static let `comment` = "comment"; 49 | public static let `comment_discussion` = "comment-discussion"; 50 | public static let `credit_card` = "credit-card"; 51 | public static let `dash` = "dash"; 52 | public static let `dashboard` = "dashboard"; 53 | public static let `database` = "database"; 54 | public static let `device_camera` = "device-camera"; 55 | public static let `device_camera_video` = "device-camera-video"; 56 | public static let `device_desktop` = "device-desktop"; 57 | public static let `device_mobile` = "device-mobile"; 58 | public static let `diff` = "diff"; 59 | public static let `diff_added` = "diff-added"; 60 | public static let `diff_ignored` = "diff-ignored"; 61 | public static let `diff_modified` = "diff-modified"; 62 | public static let `diff_removed` = "diff-removed"; 63 | public static let `diff_renamed` = "diff-renamed"; 64 | public static let `ellipsis` = "ellipsis"; 65 | public static let `eye` = "eye"; 66 | public static let `file_binary` = "file-binary"; 67 | public static let `file_code` = "file-code"; 68 | public static let `file_directory` = "file-directory"; 69 | public static let `file_media` = "file-media"; 70 | public static let `file_pdf` = "file-pdf"; 71 | public static let `file_submodule` = "file-submodule"; 72 | public static let `file_symlink_directory` = "file-symlink-directory"; 73 | public static let `file_symlink_file` = "file-symlink-file"; 74 | public static let `file_text` = "file-text"; 75 | public static let `file_zip` = "file-zip"; 76 | public static let `flame` = "flame"; 77 | public static let `fold` = "fold"; 78 | public static let `gear` = "gear"; 79 | public static let `gift` = "gift"; 80 | public static let `gist` = "gist"; 81 | public static let `gist_secret` = "gist-secret"; 82 | public static let `git_branch` = "git-branch"; 83 | public static let `git_commit` = "git-commit"; 84 | public static let `git_compare` = "git-compare"; 85 | public static let `git_merge` = "git-merge"; 86 | public static let `git_pull_request` = "git-pull-request"; 87 | public static let `globe` = "globe"; 88 | public static let `graph` = "graph"; 89 | public static let `heart` = "heart"; 90 | public static let `history` = "history"; 91 | public static let `home` = "home"; 92 | public static let `horizontal_rule` = "horizontal-rule"; 93 | public static let `hourglass` = "hourglass"; 94 | public static let `hubot` = "hubot"; 95 | public static let `inbox` = "inbox"; 96 | public static let `info` = "info"; 97 | public static let `issue_closed` = "issue-closed"; 98 | public static let `issue_opened` = "issue-opened"; 99 | public static let `issue_reopened` = "issue-reopened"; 100 | public static let `jersey` = "jersey"; 101 | public static let `jump_down` = "jump-down"; 102 | public static let `jump_left` = "jump-left"; 103 | public static let `jump_right` = "jump-right"; 104 | public static let `jump_up` = "jump-up"; 105 | public static let `key` = "key"; 106 | public static let `keyboard` = "keyboard"; 107 | public static let `law` = "law"; 108 | public static let `light_bulb` = "light-bulb"; 109 | public static let `link` = "link"; 110 | public static let `link_external` = "link-external"; 111 | public static let `list_ordered` = "list-ordered"; 112 | public static let `list_unordered` = "list-unordered"; 113 | public static let `location` = "location"; 114 | public static let `lock` = "lock"; 115 | public static let `logo_github` = "logo-github"; 116 | public static let `mail` = "mail"; 117 | public static let `mail_read` = "mail-read"; 118 | public static let `mail_reply` = "mail-reply"; 119 | public static let `mark_github` = "mark-github"; 120 | public static let `markdown` = "markdown"; 121 | public static let `megaphone` = "megaphone"; 122 | public static let `mention` = "mention"; 123 | public static let `microscope` = "microscope"; 124 | public static let `milestone` = "milestone"; 125 | public static let `mirror` = "mirror"; 126 | public static let `mortar_board` = "mortar-board"; 127 | public static let `move_down` = "move-down"; 128 | public static let `move_left` = "move-left"; 129 | public static let `move_right` = "move-right"; 130 | public static let `move_up` = "move-up"; 131 | public static let `mute` = "mute"; 132 | public static let `no_newline` = "no-newline"; 133 | public static let `octoface` = "octoface"; 134 | public static let `organization` = "organization"; 135 | public static let `package` = "package"; 136 | public static let `paintcan` = "paintcan"; 137 | public static let `pencil` = "pencil"; 138 | public static let `person` = "person"; 139 | public static let `pin` = "pin"; 140 | public static let `playback_fast_forward` = "playback-fast-forward"; 141 | public static let `playback_pause` = "playback-pause"; 142 | public static let `playback_play` = "playback-play"; 143 | public static let `playback_rewind` = "playback-rewind"; 144 | public static let `plug` = "plug"; 145 | public static let `plus` = "plus"; 146 | public static let `podium` = "podium"; 147 | public static let `primitive_dot` = "primitive-dot"; 148 | public static let `primitive_square` = "primitive-square"; 149 | public static let `pulse` = "pulse"; 150 | public static let `puzzle` = "puzzle"; 151 | public static let `question` = "question"; 152 | public static let `quote` = "quote"; 153 | public static let `radio_tower` = "radio-tower"; 154 | public static let `repo` = "repo"; 155 | public static let `repo_clone` = "repo-clone"; 156 | public static let `repo_force_push` = "repo-force-push"; 157 | public static let `repo_forked` = "repo-forked"; 158 | public static let `repo_pull` = "repo-pull"; 159 | public static let `repo_push` = "repo-push"; 160 | public static let `rocket` = "rocket"; 161 | public static let `rss` = "rss"; 162 | public static let `ruby` = "ruby"; 163 | public static let `screen_full` = "screen-full"; 164 | public static let `screen_normal` = "screen-normal"; 165 | public static let `search` = "search"; 166 | public static let `server` = "server"; 167 | public static let `settings` = "settings"; 168 | public static let `sign_in` = "sign-in"; 169 | public static let `sign_out` = "sign-out"; 170 | public static let `split` = "split"; 171 | public static let `squirrel` = "squirrel"; 172 | public static let `star` = "star"; 173 | public static let `steps` = "steps"; 174 | public static let `stop` = "stop"; 175 | public static let `sync` = "sync"; 176 | public static let `tag` = "tag"; 177 | public static let `telescope` = "telescope"; 178 | public static let `terminal` = "terminal"; 179 | public static let `three_bars` = "three-bars"; 180 | public static let `thumbsdown` = "thumbsdown"; 181 | public static let `thumbsup` = "thumbsup"; 182 | public static let `tools` = "tools"; 183 | public static let `trashcan` = "trashcan"; 184 | public static let `triangle_down` = "triangle-down"; 185 | public static let `triangle_left` = "triangle-left"; 186 | public static let `triangle_right` = "triangle-right"; 187 | public static let `triangle_up` = "triangle-up"; 188 | public static let `unfold` = "unfold"; 189 | public static let `unmute` = "unmute"; 190 | public static let `versions` = "versions"; 191 | public static let `x` = "x"; 192 | public static let `zap` = "zap"; 193 | 194 | public static let icons = ["alert":"\u{f02d}", "alignment-align":"\u{f08a}", "alignment-aligned-to":"\u{f08e}", "alignment-unalign":"\u{f08b}", "arrow-down":"\u{f03f}", "arrow-left":"\u{f040}", "arrow-right":"\u{f03e}", "arrow-small-down":"\u{f0a0}", "arrow-small-left":"\u{f0a1}", "arrow-small-right":"\u{f071}", "arrow-small-up":"\u{f09f}", "arrow-up":"\u{f03d}", "beer":"\u{f069}", "book":"\u{f007}", "bookmark":"\u{f07b}", "briefcase":"\u{f0d3}", "broadcast":"\u{f048}", "browser":"\u{f0c5}", "bug":"\u{f091}", "calendar":"\u{f068}", "check":"\u{f03a}", "checklist":"\u{f076}", "chevron-down":"\u{f0a3}", "chevron-left":"\u{f0a4}", "chevron-right":"\u{f078}", "chevron-up":"\u{f0a2}", "circle-slash":"\u{f084}", "circuit-board":"\u{f0d6}", "clippy":"\u{f035}", "clock":"\u{f046}", "cloud-download":"\u{f00b}", "cloud-upload":"\u{f00c}", "code":"\u{f05f}", "color-mode":"\u{f065}", "comment":"\u{f02b}", "comment-discussion":"\u{f04f}", "credit-card":"\u{f045}", "dash":"\u{f0ca}", "dashboard":"\u{f07d}", "database":"\u{f096}", "device-camera":"\u{f056}", "device-camera-video":"\u{f057}", "device-desktop":"\u{f27c}", "device-mobile":"\u{f038}", "diff":"\u{f04d}", "diff-added":"\u{f06b}", "diff-ignored":"\u{f099}", "diff-modified":"\u{f06d}", "diff-removed":"\u{f06c}", "diff-renamed":"\u{f06e}", "ellipsis":"\u{f09a}", "eye":"\u{f04e}", "file-binary":"\u{f094}", "file-code":"\u{f010}", "file-directory":"\u{f016}", "file-media":"\u{f012}", "file-pdf":"\u{f014}", "file-submodule":"\u{f017}", "file-symlink-directory":"\u{f0b1}", "file-symlink-file":"\u{f0b0}", "file-text":"\u{f011}", "file-zip":"\u{f013}", "flame":"\u{f0d2}", "fold":"\u{f0cc}", "gear":"\u{f02f}", "gift":"\u{f042}", "gist":"\u{f00e}", "gist-secret":"\u{f08c}", "git-branch":"\u{f020}", "git-commit":"\u{f01f}", "git-compare":"\u{f0ac}", "git-merge":"\u{f023}", "git-pull-request":"\u{f009}", "globe":"\u{f0b6}", "graph":"\u{f043}", "heart":"\u{2665}", "history":"\u{f07e}", "home":"\u{f08d}", "horizontal-rule":"\u{f070}", "hourglass":"\u{f09e}", "hubot":"\u{f09d}", "inbox":"\u{f0cf}", "info":"\u{f059}", "issue-closed":"\u{f028}", "issue-opened":"\u{f026}", "issue-reopened":"\u{f027}", "jersey":"\u{f019}", "jump-down":"\u{f072}", "jump-left":"\u{f0a5}", "jump-right":"\u{f0a6}", "jump-up":"\u{f073}", "key":"\u{f049}", "keyboard":"\u{f00d}", "law":"\u{f0d8}", "light-bulb":"\u{f000}", "link":"\u{f05c}", "link-external":"\u{f07f}", "list-ordered":"\u{f062}", "list-unordered":"\u{f061}", "location":"\u{f060}", "lock":"\u{f06a}", "logo-github":"\u{f092}", "mail":"\u{f03b}", "mail-read":"\u{f03c}", "mail-reply":"\u{f051}", "mark-github":"\u{f00a}", "markdown":"\u{f0c9}", "megaphone":"\u{f077}", "mention":"\u{f0be}", "microscope":"\u{f089}", "milestone":"\u{f075}", "mirror":"\u{f024}", "mortar-board":"\u{f0d7}", "move-down":"\u{f0a8}", "move-left":"\u{f074}", "move-right":"\u{f0a9}", "move-up":"\u{f0a7}", "mute":"\u{f080}", "no-newline":"\u{f09c}", "octoface":"\u{f008}", "organization":"\u{f037}", "package":"\u{f0c4}", "paintcan":"\u{f0d1}", "pencil":"\u{f058}", "person":"\u{f018}", "pin":"\u{f041}", "playback-fast-forward":"\u{f0bd}", "playback-pause":"\u{f0bb}", "playback-play":"\u{f0bf}", "playback-rewind":"\u{f0bc}", "plug":"\u{f0d4}", "plus":"\u{f05d}", "podium":"\u{f0af}", "primitive-dot":"\u{f052}", "primitive-square":"\u{f053}", "pulse":"\u{f085}", "puzzle":"\u{f0c0}", "question":"\u{f02c}", "quote":"\u{f063}", "radio-tower":"\u{f030}", "repo":"\u{f001}", "repo-clone":"\u{f04c}", "repo-force-push":"\u{f04a}", "repo-forked":"\u{f002}", "repo-pull":"\u{f006}", "repo-push":"\u{f005}", "rocket":"\u{f033}", "rss":"\u{f034}", "ruby":"\u{f047}", "screen-full":"\u{f066}", "screen-normal":"\u{f067}", "search":"\u{f02e}", "server":"\u{f097}", "settings":"\u{f07c}", "sign-in":"\u{f036}", "sign-out":"\u{f032}", "split":"\u{f0c6}", "squirrel":"\u{f0b2}", "star":"\u{f02a}", "steps":"\u{f0c7}", "stop":"\u{f08f}", "sync":"\u{f087}", "tag":"\u{f015}", "telescope":"\u{f088}", "terminal":"\u{f0c8}", "three-bars":"\u{f05e}", "thumbsdown":"\u{f0db}", "thumbsup":"\u{f0da}", "tools":"\u{f031}", "trashcan":"\u{f0d0}", "triangle-down":"\u{f05b}", "triangle-left":"\u{f044}", "triangle-right":"\u{f05a}", "triangle-up":"\u{f0aa}", "unfold":"\u{f039}", "unmute":"\u{f0ba}", "versions":"\u{f064}", "x":"\u{f081}", "zap":"\u{26A1}"] 195 | } 196 | -------------------------------------------------------------------------------- /LGButton/Classes/SwiftIconFont/FontOpenic.swift: -------------------------------------------------------------------------------- 1 | 2 | // 3 | // FontOpenic.swift 4 | // LGButton 5 | // 6 | // Created by philZhang. 7 | // Copyright 2018 philZhang. All rights reserved. 8 | // 9 | public enum FontOpenic { 10 | public static let __fontName__ = "Icons" 11 | public static let __fileName__ = "open-iconic" 12 | 13 | 14 | public static let `account_login` = "account-login"; 15 | public static let `account_logout` = "account-logout"; 16 | public static let `action_redo` = "action-redo"; 17 | public static let `action_undo` = "action-undo"; 18 | public static let `align_center` = "align-center"; 19 | public static let `align_left` = "align-left"; 20 | public static let `align_right` = "align-right"; 21 | public static let `aperture` = "aperture"; 22 | public static let `arrow_bottom` = "arrow-bottom"; 23 | public static let `arrow_circle_bottom` = "arrow-circle-bottom"; 24 | public static let `arrow_circle_left` = "arrow-circle-left"; 25 | public static let `arrow_circle_right` = "arrow-circle-right"; 26 | public static let `arrow_circle_top` = "arrow-circle-top"; 27 | public static let `arrow_left` = "arrow-left"; 28 | public static let `arrow_right` = "arrow-right"; 29 | public static let `arrow_thick_bottom` = "arrow-thick-bottom"; 30 | public static let `arrow_thick_left` = "arrow-thick-left"; 31 | public static let `arrow_thick_right` = "arrow-thick-right"; 32 | public static let `arrow_thick_top` = "arrow-thick-top"; 33 | public static let `arrow_top` = "arrow-top"; 34 | public static let `audio_spectrum` = "audio-spectrum"; 35 | public static let `audio` = "audio"; 36 | public static let `badge` = "badge"; 37 | public static let `ban` = "ban"; 38 | public static let `bar_chart` = "bar-chart"; 39 | public static let `basket` = "basket"; 40 | public static let `battery_empty` = "battery-empty"; 41 | public static let `battery_full` = "battery-full"; 42 | public static let `beaker` = "beaker"; 43 | public static let `bell` = "bell"; 44 | public static let `bluetooth` = "bluetooth"; 45 | public static let `bold` = "bold"; 46 | public static let `bolt` = "bolt"; 47 | public static let `book` = "book"; 48 | public static let `bookmark` = "bookmark"; 49 | public static let `box` = "box"; 50 | public static let `briefcase` = "briefcase"; 51 | public static let `british_pound` = "british-pound"; 52 | public static let `browser` = "browser"; 53 | public static let `brush` = "brush"; 54 | public static let `bug` = "bug"; 55 | public static let `bullhorn` = "bullhorn"; 56 | public static let `calculator` = "calculator"; 57 | public static let `calendar` = "calendar"; 58 | public static let `camera_slr` = "camera-slr"; 59 | public static let `caret_bottom` = "caret-bottom"; 60 | public static let `caret_left` = "caret-left"; 61 | public static let `caret_right` = "caret-right"; 62 | public static let `caret_top` = "caret-top"; 63 | public static let `cart` = "cart"; 64 | public static let `chat` = "chat"; 65 | public static let `check` = "check"; 66 | public static let `chevron_bottom` = "chevron-bottom"; 67 | public static let `chevron_left` = "chevron-left"; 68 | public static let `chevron_right` = "chevron-right"; 69 | public static let `chevron_top` = "chevron-top"; 70 | public static let `circle_check` = "circle-check"; 71 | public static let `circle_x` = "circle-x"; 72 | public static let `clipboard` = "clipboard"; 73 | public static let `clock` = "clock"; 74 | public static let `cloud_download` = "cloud-download"; 75 | public static let `cloud_upload` = "cloud-upload"; 76 | public static let `cloud` = "cloud"; 77 | public static let `cloudy` = "cloudy"; 78 | public static let `code` = "code"; 79 | public static let `cog` = "cog"; 80 | public static let `collapse_down` = "collapse-down"; 81 | public static let `collapse_left` = "collapse-left"; 82 | public static let `collapse_right` = "collapse-right"; 83 | public static let `collapse_up` = "collapse-up"; 84 | public static let `command` = "command"; 85 | public static let `comment_square` = "comment-square"; 86 | public static let `compass` = "compass"; 87 | public static let `contrast` = "contrast"; 88 | public static let `copywriting` = "copywriting"; 89 | public static let `credit_card` = "credit-card"; 90 | public static let `crop` = "crop"; 91 | public static let `dashboard` = "dashboard"; 92 | public static let `data_transfer_download` = "data-transfer-download"; 93 | public static let `data_transfer_upload` = "data-transfer-upload"; 94 | public static let `delete` = "delete"; 95 | public static let `dial` = "dial"; 96 | public static let `document` = "document"; 97 | public static let `dollar` = "dollar"; 98 | public static let `double_quote_sans_left` = "double-quote-sans-left"; 99 | public static let `double_quote_sans_right` = "double-quote-sans-right"; 100 | public static let `double_quote_serif_left` = "double-quote-serif-left"; 101 | public static let `double_quote_serif_right` = "double-quote-serif-right"; 102 | public static let `droplet` = "droplet"; 103 | public static let `eject` = "eject"; 104 | public static let `elevator` = "elevator"; 105 | public static let `ellipses` = "ellipses"; 106 | public static let `envelope_closed` = "envelope-closed"; 107 | public static let `envelope_open` = "envelope-open"; 108 | public static let `euro` = "euro"; 109 | public static let `excerpt` = "excerpt"; 110 | public static let `expand_down` = "expand-down"; 111 | public static let `expand_left` = "expand-left"; 112 | public static let `expand_right` = "expand-right"; 113 | public static let `expand_up` = "expand-up"; 114 | public static let `external_link` = "external-link"; 115 | public static let `eye` = "eye"; 116 | public static let `eyedropper` = "eyedropper"; 117 | public static let `file` = "file"; 118 | public static let `fire` = "fire"; 119 | public static let `flag` = "flag"; 120 | public static let `flash` = "flash"; 121 | public static let `folder` = "folder"; 122 | public static let `fork` = "fork"; 123 | public static let `fullscreen_enter` = "fullscreen-enter"; 124 | public static let `fullscreen_exit` = "fullscreen-exit"; 125 | public static let `globe` = "globe"; 126 | public static let `graph` = "graph"; 127 | public static let `grid_four_up` = "grid-four-up"; 128 | public static let `grid_three_up` = "grid-three-up"; 129 | public static let `grid_two_up` = "grid-two-up"; 130 | public static let `hard_drive` = "hard-drive"; 131 | public static let `header` = "header"; 132 | public static let `headphones` = "headphones"; 133 | public static let `heart` = "heart"; 134 | public static let `home` = "home"; 135 | public static let `image` = "image"; 136 | public static let `inbox` = "inbox"; 137 | public static let `infinity` = "infinity"; 138 | public static let `info` = "info"; 139 | public static let `italic` = "italic"; 140 | public static let `justify_center` = "justify-center"; 141 | public static let `justify_left` = "justify-left"; 142 | public static let `justify_right` = "justify-right"; 143 | public static let `key` = "key"; 144 | public static let `laptop` = "laptop"; 145 | public static let `layers` = "layers"; 146 | public static let `lightbulb` = "lightbulb"; 147 | public static let `link_broken` = "link-broken"; 148 | public static let `link_intact` = "link-intact"; 149 | public static let `list_rich` = "list-rich"; 150 | public static let `list` = "list"; 151 | public static let `location` = "location"; 152 | public static let `lock_locked` = "lock-locked"; 153 | public static let `lock_unlocked` = "lock-unlocked"; 154 | public static let `loop_circular` = "loop-circular"; 155 | public static let `loop_square` = "loop-square"; 156 | public static let `loop` = "loop"; 157 | public static let `magnifying_glass` = "magnifying-glass"; 158 | public static let `map_marker` = "map-marker"; 159 | public static let `map` = "map"; 160 | public static let `media_pause` = "media-pause"; 161 | public static let `media_play` = "media-play"; 162 | public static let `media_record` = "media-record"; 163 | public static let `media_skip_backward` = "media-skip-backward"; 164 | public static let `media_skip_forward` = "media-skip-forward"; 165 | public static let `media_step_backward` = "media-step-backward"; 166 | public static let `media_step_forward` = "media-step-forward"; 167 | public static let `media_stop` = "media-stop"; 168 | public static let `medical_cross` = "medical-cross"; 169 | public static let `menu` = "menu"; 170 | public static let `microphone` = "microphone"; 171 | public static let `minus` = "minus"; 172 | public static let `monitor` = "monitor"; 173 | public static let `moon` = "moon"; 174 | public static let `move` = "move"; 175 | public static let `musical_note` = "musical-note"; 176 | public static let `paperclip` = "paperclip"; 177 | public static let `pencil` = "pencil"; 178 | public static let `people` = "people"; 179 | public static let `person` = "person"; 180 | public static let `phone` = "phone"; 181 | public static let `pie_chart` = "pie-chart"; 182 | public static let `pin` = "pin"; 183 | public static let `play_circle` = "play-circle"; 184 | public static let `plus` = "plus"; 185 | public static let `power_standby` = "power-standby"; 186 | public static let `print` = "print"; 187 | public static let `project` = "project"; 188 | public static let `pulse` = "pulse"; 189 | public static let `puzzle_piece` = "puzzle-piece"; 190 | public static let `question_mark` = "question-mark"; 191 | public static let `rain` = "rain"; 192 | public static let `random` = "random"; 193 | public static let `reload` = "reload"; 194 | public static let `resize_both` = "resize-both"; 195 | public static let `resize_height` = "resize-height"; 196 | public static let `resize_width` = "resize-width"; 197 | public static let `rss_alt` = "rss-alt"; 198 | public static let `rss` = "rss"; 199 | public static let `script` = "script"; 200 | public static let `share_boxed` = "share-boxed"; 201 | public static let `share` = "share"; 202 | public static let `shield` = "shield"; 203 | public static let `signal` = "signal"; 204 | public static let `signpost` = "signpost"; 205 | public static let `sort_ascending` = "sort-ascending"; 206 | public static let `sort_descending` = "sort-descending"; 207 | public static let `spreadsheet` = "spreadsheet"; 208 | public static let `star` = "star"; 209 | public static let `sun` = "sun"; 210 | public static let `tablet` = "tablet"; 211 | public static let `tag` = "tag"; 212 | public static let `tags` = "tags"; 213 | public static let `target` = "target"; 214 | public static let `task` = "task"; 215 | public static let `terminal` = "terminal"; 216 | public static let `text` = "text"; 217 | public static let `thumb_down` = "thumb-down"; 218 | public static let `thumb_up` = "thumb-up"; 219 | public static let `timer` = "timer"; 220 | public static let `transfer` = "transfer"; 221 | public static let `trash` = "trash"; 222 | public static let `underline` = "underline"; 223 | public static let `vertical_align_bottom` = "vertical-align-bottom"; 224 | public static let `vertical_align_center` = "vertical-align-center"; 225 | public static let `vertical_align_top` = "vertical-align-top"; 226 | public static let `video` = "video"; 227 | public static let `volume_high` = "volume-high"; 228 | public static let `volume_low` = "volume-low"; 229 | public static let `volume_off` = "volume-off"; 230 | public static let `warning` = "warning"; 231 | public static let `wifi` = "wifi"; 232 | public static let `wrench` = "wrench"; 233 | public static let `x` = "x"; 234 | public static let `yen` = "yen"; 235 | public static let `zoom_in` = "zoom-in"; 236 | public static let `zoom_out` = "zoom-out"; 237 | 238 | public static let icons = ["account-login":"\u{e000}", "account-logout":"\u{e001}", "action-redo":"\u{e002}", "action-undo":"\u{e003}", "align-center":"\u{e004}", "align-left":"\u{e005}", "align-right":"\u{e006}", "aperture":"\u{e007}", "arrow-bottom":"\u{e008}", "arrow-circle-bottom":"\u{e009}", "arrow-circle-left":"\u{e00a}", "arrow-circle-right":"\u{e00b}", "arrow-circle-top":"\u{e00c}", "arrow-left":"\u{e00d}", "arrow-right":"\u{e00e}", "arrow-thick-bottom":"\u{e00f}", "arrow-thick-left":"\u{e010}", "arrow-thick-right":"\u{e011}", "arrow-thick-top":"\u{e012}", "arrow-top":"\u{e013}", "audio-spectrum":"\u{e014}", "audio":"\u{e015}", "badge":"\u{e016}", "ban":"\u{e017}", "bar-chart":"\u{e018}", "basket":"\u{e019}", "battery-empty":"\u{e01a}", "battery-full":"\u{e01b}", "beaker":"\u{e01c}", "bell":"\u{e01d}", "bluetooth":"\u{e01e}", "bold":"\u{e01f}", "bolt":"\u{e020}", "book":"\u{e021}", "bookmark":"\u{e022}", "box":"\u{e023}", "briefcase":"\u{e024}", "british-pound":"\u{e025}", "browser":"\u{e026}", "brush":"\u{e027}", "bug":"\u{e028}", "bullhorn":"\u{e029}", "calculator":"\u{e02a}", "calendar":"\u{e02b}", "camera-slr":"\u{e02c}", "caret-bottom":"\u{e02d}", "caret-left":"\u{e02e}", "caret-right":"\u{e02f}", "caret-top":"\u{e030}", "cart":"\u{e031}", "chat":"\u{e032}", "check":"\u{e033}", "chevron-bottom":"\u{e034}", "chevron-left":"\u{e035}", "chevron-right":"\u{e036}", "chevron-top":"\u{e037}", "circle-check":"\u{e08}", "circle-x":"\u{e039}", "clipboard":"\u{e03a}", "clock":"\u{e03b}", "cloud-download":"\u{e03c}", "cloud-upload":"\u{e03d}", "cloud":"\u{e03e}", "cloudy":"\u{e03f}", "code":"\u{e040}", "cog":"\u{e041}", "collapse-down":"\u{e042}", "collapse-left":"\u{e043}", "collapse-right":"\u{e044}", "collapse-up":"\u{e045}", "command":"\u{e046}", "comment-square":"\u{e047}", "compass":"\u{e048}", "contrast":"\u{e049}", "copywriting":"\u{e04a}", "credit-card":"\u{e04b}", "crop":"\u{e04c}", "dashboard":"\u{e04d}", "data-transfer-download":"\u{e04e}", "data-transfer-upload":"\u{e04f}", "delete":"\u{e050}", "dial":"\u{e051}", "document":"\u{e052}", "dollar":"\u{e053}", "double-quote-sans-left":"\u{e054}", "double-quote-sans-right":"\u{e055}", "double-quote-serif-left":"\u{e056}", "double-quote-serif-right":"\u{e057}", "droplet":"\u{e058}", "eject":"\u{e059}", "elevator":"\u{e05a}", "ellipses":"\u{e05b}", "envelope-closed":"\u{e05c}", "envelope-open":"\u{e05d}", "euro":"\u{e05e}", "excerpt":"\u{e05f}", "expand-down":"\u{e060}", "expand-left":"\u{e061}", "expand-right":"\u{e062}", "expand-up":"\u{e063}", "external-link":"\u{e064}", "eye":"\u{e065}", "eyedropper":"\u{e066}", "file":"\u{e067}", "fire":"\u{e068}", "flag":"\u{e069}", "flash":"\u{e06a}", "folder":"\u{e06b}", "fork":"\u{e06c}", "fullscreen-enter":"\u{e06d}", "fullscreen-exit":"\u{e06e}", "globe":"\u{e06f}", "graph":"\u{e070}", "grid-four-up":"\u{e071}", "grid-three-up":"\u{e072}", "grid-two-up":"\u{e073}", "hard-drive":"\u{e074}", "header":"\u{e075}", "headphones":"\u{e076}", "heart":"\u{e077}", "home":"\u{e078}", "image":"\u{e079}", "inbox":"\u{e07a}", "infinity":"\u{e07b}", "info":"\u{e07c}", "italic":"\u{e07d}", "justify-center":"\u{e07e}", "justify-left":"\u{e07f}", "justify-right":"\u{e080}", "key":"\u{e081}", "laptop":"\u{e082}", "layers":"\u{e083}", "lightbulb":"\u{e084}", "link-broken":"\u{e085}", "link-intact":"\u{e086}", "list-rich":"\u{e087}", "list":"\u{e088}", "location":"\u{e089}", "lock-locked":"\u{e08a}", "lock-unlocked":"\u{e08b}", "loop-circular":"\u{e08c}", "loop-square":"\u{e08d}", "loop":"\u{e08e}", "magnifying-glass":"\u{e08f}", "map-marker":"\u{e090}", "map":"\u{e091}", "media-pause":"\u{e092}", "media-play":"\u{e093}", "media-record":"\u{e094}", "media-skip-backward":"\u{e095}", "media-skip-forward":"\u{e096}", "media-step-backward":"\u{e097}", "media-step-forward":"\u{e098}", "media-stop":"\u{e099}", "medical-cross":"\u{e09a}", "menu":"\u{e09b}", "microphone":"\u{e09c}", "minus":"\u{e09d}", "monitor":"\u{e09e}", "moon":"\u{e09f}", "move":"\u{e0a0}", "musical-note":"\u{e0a1}", "paperclip":"\u{e0a2}", "pencil":"\u{e0a3}", "people":"\u{e0a4}", "person":"\u{e0a5}", "phone":"\u{e0a6}", "pie-chart":"\u{e0a7}", "pin":"\u{e0a8}", "play-circle":"\u{e0a9}", "plus":"\u{e0aa}", "power-standby":"\u{e0ab}", "print":"\u{e0ac}", "project":"\u{e0ad}", "pulse":"\u{e0ae}", "puzzle-piece":"\u{e0af}", "question-mark":"\u{e0b0}", "rain":"\u{e0b1}", "random":"\u{e0b2}", "reload":"\u{e0b3}", "resize-both":"\u{e0b4}", "resize-height":"\u{e0b5}", "resize-width":"\u{e0b6}", "rss-alt":"\u{e0b7}", "rss":"\u{e0b8}", "script":"\u{e0b9}", "share-boxed":"\u{e0ba}", "share":"\u{e0bb}", "shield":"\u{e0bc}", "signal":"\u{e0bd}", "signpost":"\u{e0be}", "sort-ascending":"\u{e0bf}", "sort-descending":"\u{e0c0}", "spreadsheet":"\u{e0c1}", "star":"\u{e0c2}", "sun":"\u{e0c3}", "tablet":"\u{e0c4}", "tag":"\u{e0c5}", "tags":"\u{e0c6}", "target":"\u{e0c7}", "task":"\u{e0c8}", "terminal":"\u{e0c9}", "text":"\u{e0ca}", "thumb-down":"\u{e0cb}", "thumb-up":"\u{e0cc}", "timer":"\u{e0cd}", "transfer":"\u{e0ce}", "trash":"\u{e0cf}", "underline":"\u{e0d0}", "vertical-align-bottom":"\u{e0d1}", "vertical-align-center":"\u{e0d2}", "vertical-align-top":"\u{e0d3}", "video":"\u{e0d4}", "volume-high":"\u{e0d5}", "volume-low":"\u{e0d6}", "volume-off":"\u{e0d7}", "warning":"\u{e0d8}", "wifi":"\u{e0d9}", "wrench":"\u{e0da}", "x":"\u{e0db}", "yen":"\u{e0dc}", "zoom-in":"\u{e0dd}", "zoom-out":"\u{e0de}"] 239 | } 240 | -------------------------------------------------------------------------------- /LGButton/Classes/SwiftIconFont/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2016 Sedat Gokbek CIFTCI 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /LGButton/Classes/SwiftIconFont/SwiftIconFont.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIFont+SwiftIconFont.swift 3 | // SwiftIconFont 4 | // 5 | // Created by Sedat Ciftci on 18/03/16. 6 | // Copyright © 2016 Sedat Gokbek Ciftci. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | public class SwiftIconFont { 12 | private (set) static var fonts: [String: IconFont] = [:] 13 | 14 | private init() { 15 | 16 | } 17 | 18 | public static func registFont(from font: IconFont, name: String) { 19 | self.fonts[name] = font 20 | } 21 | } 22 | 23 | public protocol IconFont { 24 | var fontName: String {get} 25 | var fileName: String {get} 26 | var icons: [String: String] {get} 27 | } 28 | 29 | public enum Fonts: IconFont { 30 | case awesome// = "FontAwesome" 31 | case ic// = "open-iconic" 32 | case ion// = "Ionicons" 33 | case oct// = "octicons" 34 | case themify// = "themify" 35 | case map// = "map-icons" 36 | case material// = "MaterialIcons-Regular" 37 | 38 | public var fontName: String { 39 | switch self { 40 | case .awesome: 41 | return FontAwesome.__fontName__ 42 | case .ic: 43 | return FontOpenic.__fontName__ 44 | case .ion: 45 | return FontIon.__fontName__ 46 | case .oct: 47 | return FontOct.__fontName__ 48 | case .themify: 49 | return FontThemify.__fontName__ 50 | case .map: 51 | return FontMap.__fontName__ 52 | case .material: 53 | return FontMaterial.__fontName__ 54 | } 55 | } 56 | 57 | public var fileName: String { 58 | switch self { 59 | case .awesome: 60 | return FontAwesome.__fileName__ 61 | case .ic: 62 | return FontOpenic.__fileName__ 63 | case .ion: 64 | return FontIon.__fileName__ 65 | case .oct: 66 | return FontOct.__fileName__ 67 | case .themify: 68 | return FontThemify.__fileName__ 69 | case .map: 70 | return FontMap.__fileName__ 71 | case .material: 72 | return FontMaterial.__fileName__ 73 | } 74 | } 75 | 76 | public var icons: [String : String] { 77 | switch self { 78 | case .awesome: 79 | return FontAwesome.icons//"FontAwesome" 80 | case .ic: 81 | return FontOpenic.icons//"Icons" 82 | case .ion: 83 | return FontIon.icons//"Ionicons" 84 | case .oct: 85 | return FontOct.icons//"octicons" 86 | case .themify: 87 | return FontThemify.icons//"Themify" 88 | case .map: 89 | return FontMap.icons//"map-icons" 90 | case .material: 91 | return FontMaterial.icons//"Material Icons" 92 | } 93 | } 94 | } 95 | public extension UIFont{ 96 | static func icon(from font: IconFont, ofSize size: CGFloat) -> UIFont { 97 | if (UIFont.fontNames(forFamilyName: font.fontName).count == 0) 98 | { 99 | /* 100 | dispatch_once(&token) { 101 | FontLoader.loadFont(fontName) 102 | } 103 | */ 104 | FontLoader.loadFont(font.fileName) 105 | } 106 | return UIFont(name: font.fontName, size: size)! 107 | } 108 | } 109 | 110 | public extension UIImage 111 | { 112 | public static func icon(from font: IconFont, iconColor: UIColor, code: String, imageSize: CGSize, ofSize size: CGFloat) -> UIImage 113 | { 114 | let drawText = String.getIcon(from: font, code: code) 115 | 116 | UIGraphicsBeginImageContextWithOptions(imageSize, false, 0) 117 | let paragraphStyle = NSMutableParagraphStyle() 118 | paragraphStyle.alignment = NSTextAlignment.center 119 | drawText!.draw(in: CGRect(x:0, y:0, width:imageSize.width, height:imageSize.height), withAttributes: [NSAttributedString.Key.font : UIFont.icon(from: font, ofSize: size), NSAttributedString.Key.paragraphStyle: paragraphStyle, NSAttributedString.Key.foregroundColor: iconColor]) 120 | 121 | let image = UIGraphicsGetImageFromCurrentImageContext() 122 | UIGraphicsEndImageContext() 123 | return image! 124 | } 125 | } 126 | 127 | public extension String { 128 | public static func getIcon(from font: IconFont, code: String) -> String? { 129 | if let icon = font.icons[code] { 130 | return icon 131 | } 132 | return nil 133 | } 134 | } 135 | 136 | func replace(withText string: NSString) -> NSString { 137 | if string.lowercased.range(of: "-") != nil { 138 | return string.replacingOccurrences(of: "-", with: "_") as NSString 139 | } 140 | return string 141 | } 142 | 143 | 144 | func getAttributedString(_ text: NSString, ofSize size: CGFloat) -> NSMutableAttributedString { 145 | let attributedString = NSMutableAttributedString(string: text as String) 146 | 147 | for substring in ((text as String).split{$0 == " "}.map(String.init)) { 148 | var splitArr = ["", ""] 149 | splitArr = substring.split{$0 == ":"}.map(String.init) 150 | if splitArr.count < 2 { 151 | continue 152 | } 153 | 154 | 155 | let substringRange = text.range(of: substring) 156 | 157 | let fontPrefix: String = splitArr[0].lowercased() 158 | var fontCode: String = splitArr[1] 159 | 160 | if fontCode.lowercased().range(of: "_") != nil { 161 | fontCode = (fontCode as NSString).replacingOccurrences(of: "_", with: "-") 162 | } 163 | 164 | var fontType: IconFont = Fonts.awesome 165 | var fontArr: [String: String] = ["": ""] 166 | 167 | if let iconFont = SwiftIconFont.fonts[fontPrefix] { 168 | fontType = iconFont 169 | fontArr = iconFont.icons 170 | } 171 | 172 | if let _ = fontArr[fontCode] { 173 | attributedString.replaceCharacters(in: substringRange, with: String.getIcon(from: fontType, code: fontCode)!) 174 | let newRange = NSRange(location: substringRange.location, length: 1) 175 | attributedString.addAttribute(NSAttributedString.Key.font, value: UIFont.icon(from: fontType, ofSize: size), range: newRange) 176 | } 177 | } 178 | 179 | return attributedString 180 | } 181 | 182 | func GetIconIndexWithSelectedIcon(_ icon: String) -> String { 183 | let text = icon as NSString 184 | var iconIndex: String = "" 185 | 186 | for substring in ((text as String).split{$0 == " "}.map(String.init)) { 187 | var splitArr = ["", ""] 188 | splitArr = substring.split{$0 == ":"}.map(String.init) 189 | if splitArr.count == 1{ 190 | continue 191 | } 192 | 193 | var fontCode: String = splitArr[1] 194 | 195 | if fontCode.lowercased().range(of: "_") != nil { 196 | fontCode = (fontCode as NSString).replacingOccurrences(of: "_", with: "-") 197 | } 198 | iconIndex = fontCode 199 | } 200 | 201 | return iconIndex 202 | } 203 | 204 | func GetFontTypeWithSelectedIcon(_ icon: String) -> IconFont { 205 | let text = icon as NSString 206 | var fontType: IconFont = Fonts.awesome 207 | 208 | for substring in ((text as String).split{$0 == " "}.map(String.init)) { 209 | var splitArr = ["", ""] 210 | splitArr = substring.split{$0 == ":"}.map(String.init) 211 | 212 | if splitArr.count == 1{ 213 | continue 214 | } 215 | 216 | let fontPrefix: String = splitArr[0].lowercased() 217 | var fontCode: String = splitArr[1] 218 | 219 | if fontCode.lowercased().range(of: "_") != nil { 220 | fontCode = (fontCode as NSString).replacingOccurrences(of: "_", with: "-") 221 | } 222 | 223 | if let iconFont = SwiftIconFont.fonts[fontPrefix] { 224 | fontType = iconFont 225 | } 226 | } 227 | 228 | return fontType 229 | } 230 | 231 | // Extensions 232 | 233 | 234 | public extension UILabel { 235 | func parseIcon() { 236 | let text = replace(withText: (self.text! as NSString)) 237 | self.attributedText = getAttributedString(text, ofSize: self.font!.pointSize) 238 | } 239 | } 240 | -------------------------------------------------------------------------------- /LGButton/Classes/SwiftIconFont/SwiftIconLabel.swift: -------------------------------------------------------------------------------- 1 | // 2 | // SwiftIconLabel.swift 3 | // icon 4 | // 5 | // Created by Sedat Gökbek ÇİFTÇİ on 08/07/16. 6 | // Copyright © 2016 Sedat Gökbek ÇİFTÇİ. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @IBDesignable 12 | class SwiftIconLabel: UILabel { 13 | @IBInspectable var Icon: String = "" { 14 | didSet { 15 | self.text = Icon 16 | self.parseIcon() 17 | } 18 | } 19 | 20 | override func awakeFromNib() { 21 | self.parseIcon() 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /LGButton/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | $(CURRENT_PROJECT_VERSION) 21 | NSPrincipalClass 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /LGButton/LGButton.h: -------------------------------------------------------------------------------- 1 | // 2 | // LGButton.h 3 | // LGButton 4 | // 5 | // Created by Lorenzo Greco on 28/05/2017. 6 | // Copyright © 2017 Lorenzo Greco. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | //! Project version number for LGButton. 12 | FOUNDATION_EXPORT double LGButtonVersionNumber; 13 | 14 | //! Project version string for LGButton. 15 | FOUNDATION_EXPORT const unsigned char LGButtonVersionString[]; 16 | 17 | // In this header, you should import all the public headers of your framework using statements like #import 18 | 19 | 20 | -------------------------------------------------------------------------------- /LGButton/Resources/FontAwesome.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loregr/LGButton/b58540eff6b1ca74aeffdff71cd5eb060a219469/LGButton/Resources/FontAwesome.ttf -------------------------------------------------------------------------------- /LGButton/Resources/Ionicons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loregr/LGButton/b58540eff6b1ca74aeffdff71cd5eb060a219469/LGButton/Resources/Ionicons.ttf -------------------------------------------------------------------------------- /LGButton/Resources/LGButton.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 62 | 68 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | -------------------------------------------------------------------------------- /LGButton/Resources/MaterialIcons-Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loregr/LGButton/b58540eff6b1ca74aeffdff71cd5eb060a219469/LGButton/Resources/MaterialIcons-Regular.ttf -------------------------------------------------------------------------------- /LGButton/Resources/map-icons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loregr/LGButton/b58540eff6b1ca74aeffdff71cd5eb060a219469/LGButton/Resources/map-icons.ttf -------------------------------------------------------------------------------- /LGButton/Resources/octicons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loregr/LGButton/b58540eff6b1ca74aeffdff71cd5eb060a219469/LGButton/Resources/octicons.ttf -------------------------------------------------------------------------------- /LGButton/Resources/open-iconic.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loregr/LGButton/b58540eff6b1ca74aeffdff71cd5eb060a219469/LGButton/Resources/open-iconic.ttf -------------------------------------------------------------------------------- /LGButton/Resources/themify.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loregr/LGButton/b58540eff6b1ca74aeffdff71cd5eb060a219469/LGButton/Resources/themify.ttf -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 Lorenzo Greco 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 all 13 | 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 THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | ![logo](media/header_btn.png) 3 | 4 | [![build](https://travis-ci.org/loregr/LGButton.svg?branch=master)](https://travis-ci.org/loregr/LGButton) ![platform](https://img.shields.io/badge/platform-ios-blue.svg) [![license](https://img.shields.io/badge/license-MIT-lightgrey.svg)](./LICENSE.md) [![Version](https://img.shields.io/cocoapods/v/LGButton.svg?style=flat)](http://cocoadocs.org/docsets/LGButton) 5 | 6 | A fully customisable subclass of the native `UIControl` which allows you to create beautiful buttons without writing any line of code. 7 | 8 | 9 | ## Preview 10 | 11 | You'll be able to create buttons like these by using only the interface builder: 12 | 13 | ![preview](media/preview_btn.png) 14 | 15 | Moreover you can use them for asynchronous operations. 16 | 17 | ![async](media/async_demo.gif) 18 | 19 | 20 | 21 | ## Install 22 | 23 | To integrate _LGButton_ into your Xcode project using CocoaPods, specify it in your `Podfile`: 24 | 25 | ```ruby 26 | use_frameworks! 27 | 28 | pod 'LGButton' 29 | ``` 30 | 31 | ## Icons and images 32 | 33 | You can add images/icons to your button, icons are taken from different ready to use font icons collections, images can be imported directly from your project assets folder. 34 | 35 | You can customise icons/images on the left and/or on the right of the button title. 36 | 37 | ### Icons 38 | 39 | Icons are managed by [SwiftIconFont](https://github.com/0x73/SwiftIconFont) integration, so you can easily add and customise button icons by choosing from the most popular font icons collections. In particular: 40 | 41 | 42 | | Collection | Font name | Cheat Sheet | 43 | |--------------|--------|-------------------------------------------| 44 | | Font Awesome | fa | [List](https://fontawesome.com/v4.7.0/icons/) | 45 | | Ion Icons | io | [List](http://ionicons.com) | 46 | | Octicons | oc | [List](https://octicons.github.com) | 47 | | Open Iconic | ic | [List](https://useiconic.com/open/) | 48 | | Material Icon | ma | [List](https://design.google.com/icons/) | 49 | | Themify | ti | [List](https://themify.me/themify-icons) | 50 | | Map Icons | mi | [List](http://map-icons.com) | 51 | 52 | The main properties that you need to set in order to use font icons are: 53 | - **Icon Font Name**: you can pick one value from the table above, different values will be ignored (please consider that not all the icons may be available since this library may not be updated right after a font library update). 54 | 55 | - **Icon String**: the icon name taken from the cheatsheet without the collection prefix. 56 | 57 | _So, if you want to use `fa-align-left` from `Font Awesome`, **Icon Font Name** will be `fa` and **Icon String** will be `align-left`._ 58 | 59 | ### Images 60 | Set the **Image source** property in order to use an image from your assets folder. 61 | 62 | _Note: if **Image source** is set, every other property about the font icon on the same side will be ignored._ 63 | 64 | ## Usage 65 | 66 | Drag and drop an `UIView` object into your view controller and set its class and module to `LGButton`. 67 | 68 | ![class](media/class_name.png) 69 | 70 | Customise your button by setting the properties from the Interface Builder. 71 | 72 | ![properties_1](media/properties_1.jpg) ![properties_2](media/properties_2.jpg) 73 | 74 | ### Supported Attributes 75 | 76 | | Attribute | Description | Default value | 77 | | ------------- |-------------| -----| 78 | | Bg Color | Main background color | clear | 79 | | Show Touch Feedback | Whether a touch feedback should be visible or not | true | 80 | | Gradient Start Color | The first color of the gradient background | nil | 81 | | Gradient End Color | The second color of the gradient background | nil | 82 | | Gradient End Color | The second color of the gradient background | nil | 83 | | Gradient Horizontal | Whether the gradient should be horizontal or not | false | 84 | | Gradient Rotation | Set the gradient rotation angle (degrees from -360 to 360) | 0 | 85 | | Corner Radius | The corner radius | 0.0 | 86 | | Fully Rounded Corners | Apply a corner radius equals to height/2 | false | 87 | | Border Color | The border color | white | 88 | | Border Width | The border width | 0.0 | 89 | | Title Color | The title color | white | 90 | | Title String | The title string | _EMPTY_STRING_ | 91 | | Title Font Name | The title font name | nil | 92 | | Title Font Size | The title font size | 14.0 | 93 | | Vertical orientation | If `true` the left icon will be placed on the top and the right icon will be placed on the bottom | false | 94 | | Left Icon String | The name of the left icon (taken from the cheat sheet) | _EMPTY_STRING_ | 95 | | Left Icon Font Name | The name of the left icon font name (taken from the table above) | _EMPTY_STRING_ | 96 | | Left Icon Font Size | The left icon font size | 14.0 | 97 | | Left Icon Color | The left icon color | white | 98 | | Left Image Src | The name of the left source asset | nil | 99 | | Left Image Height | The left image height | 20.0 | 100 | | Left Image Width | The left image width | 20.0 | 101 | | Left Image Color | The left image tint color | nil | 102 | | Right Icon String | The name of the right icon (taken from the cheat sheet) | _EMPTY_STRING_ | 103 | | Right Icon Font Name | The name of the right icon font name (taken from the table above) | _EMPTY_STRING_ | 104 | | Right Icon Font Size | The right icon font size | 14.0 | 105 | | Right Icon Color | The right icon color | white | 106 | | Right Image Src | The name of the right source asset | nil | 107 | | Right Image Height | The right image height | 20.0 | 108 | | Right Image Width | The right image width | 20.0 | 109 | | Right Image Color | The right image tint color | nil | 110 | | Spacing Title Icon | The spacing between the title and the image/icon | 16.0 | 111 | | Spacing Top | The internal top spacing | 8.0 | 112 | | Spacing Bottom | The internal bottom spacing | 8.0 | 113 | | Spacing Leading | The internal leading spacing | 16.0 | 114 | | Spacing Trailing | The internal trailing spacing | 16.0 | 115 | | Shadow Offset | The shadow offset | (0,0)| 116 | | Shadow Radius | The shadow radius | 0.0| 117 | | Shadow Opacity | The shadow opacity | 1.0| 118 | | Shadow Color | The shadow color | black| 119 | | Loading spinner Color | The loading spinner color | white| 120 | | Loading String | The loading message text | _EMPTY_STRING_ | 121 | | Loading Font Name | The loading message font name | _EMPTY_STRING_ | 122 | | Loading Font Size | The loading message font size | 14.0 | 123 | | Left Aligned | `true` if the button items should be aligned to the left. It requires the button to have a fixed width | false | 124 | | Right Aligned | `true` if the button items should be aligned to the right. It requires the button to have a fixed width | false | 125 | 126 | You can download the demo project if you want to check more. 127 | 128 | ## Issues 129 | 130 | 131 | Feel free to submit issues and features requests. 132 | 133 | ## Contributing 134 | 135 | Contributions are more then welcome. Your contribution may include bug fixing or/and new features. 136 | 137 | Please follow the "fork-and-pull" Git workflow (check [here](./CONTRIBUTING.md) for more). 138 | 139 | 1. **Fork** the repo on GitHub 140 | 2. **Clone** the project to your own machine 141 | 3. **Commit** changes to your own branch 142 | 4. **Push** your work back up to your fork 143 | 5. Submit a **Pull request** so that I can review your changes 144 | 145 | 146 | _NOTE: Be sure to merge the latest from "upstream" before making a pull request!_ 147 | 148 | ## Author 149 | 150 | Lorenzo Greco 151 | 152 | - [Website](https://lorenzogreco.com) 153 | - [LinkedIn](https://www.linkedin.com/in/lorenzo-greco-61118195/) 154 | 155 | ## Credits 156 | [SwiftIconFont](https://github.com/0x73/SwiftIconFont) project is used in order to provide ready to use icons. 157 | 158 | ## License 159 | ``` 160 | MIT License 161 | 162 | Copyright (c) 2017 Lorenzo Greco 163 | 164 | Permission is hereby granted, free of charge, to any person obtaining a copy 165 | of this software and associated documentation files (the "Software"), to deal 166 | in the Software without restriction, including without limitation the rights 167 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 168 | copies of the Software, and to permit persons to whom the Software is 169 | furnished to do so, subject to the following conditions: 170 | 171 | The above copyright notice and this permission notice shall be included in all 172 | copies or substantial portions of the Software. 173 | 174 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 175 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 176 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 177 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 178 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 179 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 180 | SOFTWARE. 181 | ``` 182 | -------------------------------------------------------------------------------- /_config.yml: -------------------------------------------------------------------------------- 1 | theme: jekyll-theme-cayman -------------------------------------------------------------------------------- /media/async_demo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loregr/LGButton/b58540eff6b1ca74aeffdff71cd5eb060a219469/media/async_demo.gif -------------------------------------------------------------------------------- /media/class_name.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loregr/LGButton/b58540eff6b1ca74aeffdff71cd5eb060a219469/media/class_name.png -------------------------------------------------------------------------------- /media/header_btn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loregr/LGButton/b58540eff6b1ca74aeffdff71cd5eb060a219469/media/header_btn.png -------------------------------------------------------------------------------- /media/preview_btn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loregr/LGButton/b58540eff6b1ca74aeffdff71cd5eb060a219469/media/preview_btn.png -------------------------------------------------------------------------------- /media/properties_1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loregr/LGButton/b58540eff6b1ca74aeffdff71cd5eb060a219469/media/properties_1.jpg -------------------------------------------------------------------------------- /media/properties_2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/loregr/LGButton/b58540eff6b1ca74aeffdff71cd5eb060a219469/media/properties_2.jpg --------------------------------------------------------------------------------