Skip to content

Commit

Permalink
PKHUD 2.1 - Swift 2.0 Support
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip Kluz committed Sep 26, 2015
1 parent 86f3f34 commit b83a756
Show file tree
Hide file tree
Showing 32 changed files with 687 additions and 679 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
*.pbxuser
*.xcworkspace
*.xccheckout
*.xcuserstate

# XCode 4
xcuserdata
Expand All @@ -32,3 +33,4 @@ ThirdParty/boost/*

# Maya temporary
.mayaSwatches/
UserInterfaceState.xcuserstate
6 changes: 3 additions & 3 deletions Demo/DemoViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
import UIKit
import PKHUD

@objc
class DemoViewController: UIViewController {

override func viewDidLoad() {
super.viewDidLoad()
PKHUD.sharedHUD.dimsBackground = false
Expand Down Expand Up @@ -63,8 +63,8 @@ class DemoViewController: UIViewController {
}
}

override func supportedInterfaceOrientations() -> Int {
return Int(UIInterfaceOrientationMask.AllButUpsideDown.rawValue)
override func supportedInterfaceOrientations() -> UIInterfaceOrientationMask {
return UIInterfaceOrientationMask.AllButUpsideDown;
}

override func preferredStatusBarStyle() -> UIStatusBarStyle {
Expand Down
15 changes: 15 additions & 0 deletions Demo/Images.xcassets/AppIcon.appiconset/Contents.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,31 @@
"size" : "29x29",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "29x29",
"scale" : "3x"
},
{
"idiom" : "iphone",
"size" : "40x40",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "40x40",
"scale" : "3x"
},
{
"idiom" : "iphone",
"size" : "60x60",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "60x60",
"scale" : "3x"
},
{
"idiom" : "ipad",
"size" : "29x29",
Expand Down
8 changes: 6 additions & 2 deletions Demo/Images.xcassets/background.imageset/Contents.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,12 @@
},
{
"idiom" : "universal",
"scale" : "2x",
"filename" : "[email protected]"
"filename" : "[email protected]",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
Expand Down
4 changes: 3 additions & 1 deletion Demo/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIdentifier</key>
<string>com.NSExceptional.${PRODUCT_NAME:rfc1034identifier}</string>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
Expand All @@ -22,6 +22,8 @@
<string>1</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UILaunchStoryboardName</key>
<string>Launch Screen</string>
<key>UIMainStoryboardFile</key>
<string>Storyboard</string>
<key>UIRequiredDeviceCapabilities</key>
Expand Down
27 changes: 27 additions & 0 deletions Demo/Launch Screen.storyboard
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="8121.17" systemVersion="15A178w" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" initialViewController="01J-lp-oVM">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="8101.14"/>
</dependencies>
<scenes>
<!--View Controller-->
<scene sceneID="EHf-IW-A2E">
<objects>
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="Llm-lL-Icb"/>
<viewControllerLayoutGuide type="bottom" id="xb3-aO-Qok"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<animations/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="53" y="375"/>
</scene>
</scenes>
</document>
Empty file removed Demo/PKHUD Demo.textClipping
Empty file.
260 changes: 117 additions & 143 deletions Demo/Storyboard.storyboard

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions PKHUD.podspec
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
Pod::Spec.new do |s|
s.name = 'PKHUD'
s.module_name = 'PKHUD'
s.version = '2.0.1'
s.version = '2.1.0'
s.summary = 'A Swift based reimplementation of the Apple HUD (Volume, Ringer, Rotation,…) for iOS 8'
s.homepage = 'https://github.com/pkluz/PKHUD'
s.license = 'MIT'
s.author = { 'Philip Kluz' => '[email protected]' }
s.platform = :ios, '8.0'
s.ios.deployment_target = '8.0'
s.requires_arc = true
s.source = { :git => 'https://github.com/pkluz/PKHUD.git', :tag => '2.0.1' }
s.source = { :git => 'https://github.com/pkluz/PKHUD.git', :tag => s.version.to_s }
s.source_files = 'PKHUD/**/*.{h,swift}'
s.resources = 'PKHUD/*.xcassets'
end
Loading

0 comments on commit b83a756

Please sign in to comment.