Skip to content

Commit

Permalink
macos support
Browse files Browse the repository at this point in the history
  • Loading branch information
segecey committed Jun 4, 2020
1 parent fc83fe5 commit 717c78d
Show file tree
Hide file tree
Showing 51 changed files with 1,492 additions and 27 deletions.
2 changes: 2 additions & 0 deletions ExampleMac/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/Pods
Podfile.lock
399 changes: 399 additions & 0 deletions ExampleMac/ExampleMac.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>SchemeUserState</key>
<dict>
<key>ExampleMac.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>2</integer>
</dict>
</dict>
</dict>
</plist>
10 changes: 10 additions & 0 deletions ExampleMac/ExampleMac.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
26 changes: 26 additions & 0 deletions ExampleMac/ExampleMac/AppDelegate.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
//
// AppDelegate.swift
// ExampleMac
//
// Created by Sedat G. ÇİFTÇİ on 4.06.2020.
// Copyright © 2020 Sedat G. ÇİFTÇİ. All rights reserved.
//

import Cocoa

@NSApplicationMain
class AppDelegate: NSObject, NSApplicationDelegate {



func applicationDidFinishLaunching(_ aNotification: Notification) {
// Insert code here to initialize your application
}

func applicationWillTerminate(_ aNotification: Notification) {
// Insert code here to tear down your application
}


}

Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"images" : [
{
"idiom" : "mac",
"scale" : "1x",
"size" : "16x16"
},
{
"idiom" : "mac",
"scale" : "2x",
"size" : "16x16"
},
{
"idiom" : "mac",
"scale" : "1x",
"size" : "32x32"
},
{
"idiom" : "mac",
"scale" : "2x",
"size" : "32x32"
},
{
"idiom" : "mac",
"scale" : "1x",
"size" : "128x128"
},
{
"idiom" : "mac",
"scale" : "2x",
"size" : "128x128"
},
{
"idiom" : "mac",
"scale" : "1x",
"size" : "256x256"
},
{
"idiom" : "mac",
"scale" : "2x",
"size" : "256x256"
},
{
"idiom" : "mac",
"scale" : "1x",
"size" : "512x512"
},
{
"idiom" : "mac",
"scale" : "2x",
"size" : "512x512"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
6 changes: 6 additions & 0 deletions ExampleMac/ExampleMac/Assets.xcassets/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"info" : {
"author" : "xcode",
"version" : 1
}
}
717 changes: 717 additions & 0 deletions ExampleMac/ExampleMac/Base.lproj/Main.storyboard

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions ExampleMac/ExampleMac/ExampleMac.entitlements
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.files.user-selected.read-only</key>
<true/>
</dict>
</plist>
36 changes: 36 additions & 0 deletions ExampleMac/ExampleMac/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIconFile</key>
<string></string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>LSMinimumSystemVersion</key>
<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2020 Sedat G. ÇİFTÇİ. All rights reserved.</string>
<key>NSMainStoryboardFile</key>
<string>Main</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
<key>NSSupportsAutomaticTermination</key>
<true/>
<key>NSSupportsSuddenTermination</key>
<true/>
</dict>
</plist>
27 changes: 27 additions & 0 deletions ExampleMac/ExampleMac/ViewController.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
//
// ViewController.swift
// ExampleMac
//
// Created by Sedat G. ÇİFTÇİ on 4.06.2020.
// Copyright © 2020 Sedat G. ÇİFTÇİ. All rights reserved.
//

import Cocoa

class ViewController: NSViewController {

override func viewDidLoad() {
super.viewDidLoad()

// Do any additional setup after loading the view.
}

override var representedObject: Any? {
didSet {
// Update the view, if already loaded.
}
}


}

4 changes: 4 additions & 0 deletions ExampleMac/Podfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
target 'ExampleMac' do
use_frameworks!
pod 'SwiftIconFont', :path => '../'
end
10 changes: 8 additions & 2 deletions SwiftIconFont.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ Pod::Spec.new do |s|
s.platform = :ios
s.ios.deployment_target = '8.0'
s.tvos.deployment_target = '9.0'
s.osx.deployment_target = '10.11'
s.name = "SwiftIconFont"
s.summary = "Icons fonts for Swift (FontAwesome, Ionicons, Octicons, Iconic)"
s.requires_arc = true
Expand All @@ -10,7 +11,12 @@ Pod::Spec.new do |s|
s.author = { "Sedat CIFTCI" => "[email protected]" }
s.homepage = "http://sedat.ninja"
s.source = { :git => "https://github.com/0x73/SwiftIconFont.git", :tag => "#{s.version}"}
s.framework = "UIKit"
s.source_files = "SwiftIconFont/Classes/**/*"
s.ios.frameworks = s.tvos.frameworks = 'UIKit'
s.swift_version = "5.0"
s.osx.frameworks = 'AppKit'

s.ios.source_files = s.tvos.source_files = 'SwiftIconFont/Classes/UIKit/**/*'
s.osx.source_files = 'SwiftIconFont/Classes/AppKit/**/*.{swift}'
s.source_files = "SwiftIconFont/Classes/Shared/**/*"
s.resources = "SwiftIconFont/Resources/*.{ttf}"
end
44 changes: 28 additions & 16 deletions SwiftIconFont.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
DAD008301F90D2A700D4FC34 /* SwiftIconFont+UILabel.swift in Sources */ = {isa = PBXBuildFile; fileRef = DAD0082F1F90D2A700D4FC34 /* SwiftIconFont+UILabel.swift */; };
DAD008341F90D2FC00D4FC34 /* SwiftIconFont+String.swift in Sources */ = {isa = PBXBuildFile; fileRef = DAD008331F90D2FC00D4FC34 /* SwiftIconFont+String.swift */; };
DAD008381F90D44C00D4FC34 /* SwiftIconFont+UIImageView.swift in Sources */ = {isa = PBXBuildFile; fileRef = DAD008371F90D44C00D4FC34 /* SwiftIconFont+UIImageView.swift */; };
E8D081632488F663005A139F /* SwiftIconFont+NSImage.swift in Sources */ = {isa = PBXBuildFile; fileRef = E8D081622488F663005A139F /* SwiftIconFont+NSImage.swift */; };
E8E47629248855DE005275C4 /* Foundation.swift in Sources */ = {isa = PBXBuildFile; fileRef = E8E47628248855DE005275C4 /* Foundation.swift */; };
E8E4762B24885663005275C4 /* FontAwesome5.swift in Sources */ = {isa = PBXBuildFile; fileRef = E8E4762A24885662005275C4 /* FontAwesome5.swift */; };
E8E47631248859A4005275C4 /* ElegantIcon.swift in Sources */ = {isa = PBXBuildFile; fileRef = E8E47630248859A4005275C4 /* ElegantIcon.swift */; };
Expand Down Expand Up @@ -103,6 +104,7 @@
DAD0082F1F90D2A700D4FC34 /* SwiftIconFont+UILabel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "SwiftIconFont+UILabel.swift"; sourceTree = "<group>"; };
DAD008331F90D2FC00D4FC34 /* SwiftIconFont+String.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "SwiftIconFont+String.swift"; sourceTree = "<group>"; usesTabs = 0; };
DAD008371F90D44C00D4FC34 /* SwiftIconFont+UIImageView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "SwiftIconFont+UIImageView.swift"; sourceTree = "<group>"; };
E8D081622488F663005A139F /* SwiftIconFont+NSImage.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "SwiftIconFont+NSImage.swift"; sourceTree = "<group>"; };
E8E476272488556C005275C4 /* fontcustom.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = fontcustom.ttf; sourceTree = "<group>"; };
E8E47628248855DE005275C4 /* Foundation.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Foundation.swift; sourceTree = "<group>"; };
E8E4762A24885662005275C4 /* FontAwesome5.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FontAwesome5.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -195,35 +197,24 @@
DA8D9D3A1D345A4900F5E693 /* Classes */ = {
isa = PBXGroup;
children = (
DAD008361F90D37D00D4FC34 /* Fonts */,
DAD008351F90D35800D4FC34 /* UI */,
DAD008221F90D1A100D4FC34 /* Extensions */,
DA8D9D3C1D345A4900F5E693 /* FontLoader.swift */,
DA8D9D441D345A4900F5E693 /* SwiftIconFont.swift */,
E8D081612488F610005A139F /* AppKit */,
E8D081602488F20E005A139F /* Shared */,
DAD008351F90D35800D4FC34 /* UIKit */,
);
path = Classes;
sourceTree = "<group>";
};
DAD008221F90D1A100D4FC34 /* Extensions */ = {
DAD008351F90D35800D4FC34 /* UIKit */ = {
isa = PBXGroup;
children = (
DAD008201F90D16500D4FC34 /* SwiftIconFont+UIImage.swift */,
DAD008231F90D1D500D4FC34 /* SwiftIconFont+NSRange.swift */,
DAD008251F90D21F00D4FC34 /* SwiftIconFont+UITabBarItem.swift */,
DAD008271F90D23300D4FC34 /* SwiftIconFont+UIBarButtonItem.swift */,
DAD008291F90D24F00D4FC34 /* SwiftIconFont+UIButton.swift */,
DAD0082B1F90D26700D4FC34 /* SwiftIconFont+UITextField.swift */,
DAD0082D1F90D28300D4FC34 /* SwiftIconFont+UITextView.swift */,
DAD0082F1F90D2A700D4FC34 /* SwiftIconFont+UILabel.swift */,
DAD008331F90D2FC00D4FC34 /* SwiftIconFont+String.swift */,
DAD008371F90D44C00D4FC34 /* SwiftIconFont+UIImageView.swift */,
);
path = Extensions;
sourceTree = "<group>";
};
DAD008351F90D35800D4FC34 /* UI */ = {
isa = PBXGroup;
children = (
DA8D9D421D345A4900F5E693 /* SwiftIconBarButtonItem.swift */,
DA8D9D431D345A4900F5E693 /* SwiftIconButton.swift */,
DA8D9D451D345A4900F5E693 /* SwiftIconLabel.swift */,
Expand All @@ -233,12 +224,13 @@
DA223AA81F160FAC005915D0 /* SwiftIconFontView.swift */,
DA639C411F62B959004810A6 /* SwiftIconStepper.swift */,
);
path = UI;
path = UIKit;
sourceTree = "<group>";
};
DAD008361F90D37D00D4FC34 /* Fonts */ = {
isa = PBXGroup;
children = (
DAD008231F90D1D500D4FC34 /* SwiftIconFont+NSRange.swift */,
DA8D9D3B1D345A4900F5E693 /* FontAwesome.swift */,
E8E4762A24885662005275C4 /* FontAwesome5.swift */,
DA8D9D3D1D345A4900F5E693 /* Iconic.swift */,
Expand All @@ -255,6 +247,25 @@
path = Fonts;
sourceTree = "<group>";
};
E8D081602488F20E005A139F /* Shared */ = {
isa = PBXGroup;
children = (
DAD008361F90D37D00D4FC34 /* Fonts */,
DA8D9D3C1D345A4900F5E693 /* FontLoader.swift */,
DA8D9D441D345A4900F5E693 /* SwiftIconFont.swift */,
DAD008331F90D2FC00D4FC34 /* SwiftIconFont+String.swift */,
);
path = Shared;
sourceTree = "<group>";
};
E8D081612488F610005A139F /* AppKit */ = {
isa = PBXGroup;
children = (
E8D081622488F663005A139F /* SwiftIconFont+NSImage.swift */,
);
path = AppKit;
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXHeadersBuildPhase section */
Expand Down Expand Up @@ -382,6 +393,7 @@
DA639C421F62B959004810A6 /* SwiftIconStepper.swift in Sources */,
DA8D9D581D345A4900F5E693 /* ThemifyIcon.swift in Sources */,
E8E4763424885D85005275C4 /* Captain.swift in Sources */,
E8D081632488F663005A139F /* SwiftIconFont+NSImage.swift in Sources */,
DAD008341F90D2FC00D4FC34 /* SwiftIconFont+String.swift in Sources */,
DA8D9D551D345A4900F5E693 /* SwiftIconTabBarItem.swift in Sources */,
DA8D9D561D345A4900F5E693 /* SwiftIconTextField.swift in Sources */,
Expand Down
Loading

0 comments on commit 717c78d

Please sign in to comment.