-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
420c201
commit c9d95b3
Showing
64 changed files
with
849 additions
and
24 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
227 changes: 207 additions & 20 deletions
227
Example/MKRingProgressViewExample.xcodeproj/project.pbxproj
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
// | ||
// AppDelegate.swift | ||
// RingProgressExample | ||
// | ||
// Created by Max Konovalov on 21/10/2018. | ||
// Copyright © 2018 Max Konovalov. All rights reserved. | ||
// | ||
|
||
import UIKit | ||
|
||
@UIApplicationMain | ||
class AppDelegate: UIResponder, UIApplicationDelegate { | ||
|
||
var window: UIWindow? | ||
|
||
|
||
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { | ||
//let icon = generateAppIcon(scale: 2) | ||
return true | ||
} | ||
|
||
func applicationWillResignActive(_ application: UIApplication) { | ||
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. | ||
// Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. | ||
} | ||
|
||
func applicationDidEnterBackground(_ application: UIApplication) { | ||
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. | ||
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. | ||
} | ||
|
||
func applicationWillEnterForeground(_ application: UIApplication) { | ||
// 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. | ||
} | ||
|
||
func applicationDidBecomeActive(_ application: UIApplication) { | ||
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. | ||
} | ||
|
||
func applicationWillTerminate(_ application: UIApplication) { | ||
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. | ||
} | ||
|
||
|
||
} | ||
|
116 changes: 116 additions & 0 deletions
116
Example/ProgressRingExample/Assets.xcassets/AppIcon.appiconset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"size" : "20x20", | ||
"idiom": "iphone", | ||
"filename" : "Icon-20@2x.png", | ||
"scale": "2x" | ||
}, | ||
{ | ||
"size" : "20x20", | ||
"idiom": "iphone", | ||
"filename" : "Icon-20@3x.png", | ||
"scale": "3x" | ||
}, | ||
{ | ||
"size" : "20x20", | ||
"idiom": "ipad", | ||
"filename" : "Icon-20.png", | ||
"scale": "1x" | ||
}, | ||
{ | ||
"size" : "20x20", | ||
"idiom": "ipad", | ||
"filename" : "Icon-20@2x.png", | ||
"scale": "2x" | ||
}, | ||
{ | ||
"size" : "29x29", | ||
"idiom" : "iphone", | ||
"filename" : "Icon-29@2x.png", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"size" : "29x29", | ||
"idiom" : "iphone", | ||
"filename" : "Icon-29@3x.png", | ||
"scale" : "3x" | ||
}, | ||
{ | ||
"size" : "40x40", | ||
"idiom" : "iphone", | ||
"filename" : "Icon-40@2x.png", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"size" : "40x40", | ||
"idiom" : "iphone", | ||
"filename" : "Icon-40@3x.png", | ||
"scale" : "3x" | ||
}, | ||
{ | ||
"size" : "60x60", | ||
"idiom" : "iphone", | ||
"filename" : "Icon-60@2x.png", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"size" : "60x60", | ||
"idiom" : "iphone", | ||
"filename" : "Icon-60@3x.png", | ||
"scale" : "3x" | ||
}, | ||
{ | ||
"size" : "29x29", | ||
"idiom" : "ipad", | ||
"filename" : "Icon-29.png", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"size" : "29x29", | ||
"idiom" : "ipad", | ||
"filename" : "Icon-29@2x.png", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"size" : "40x40", | ||
"idiom" : "ipad", | ||
"filename" : "Icon-40.png", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"size" : "40x40", | ||
"idiom" : "ipad", | ||
"filename" : "Icon-40@2x.png", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"size" : "76x76", | ||
"idiom" : "ipad", | ||
"filename" : "Icon-76.png", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"size" : "76x76", | ||
"idiom" : "ipad", | ||
"filename" : "Icon-76@2x.png", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"size" : "83.5x83.5", | ||
"idiom" : "ipad", | ||
"filename" : "Icon-83.5@2x.png", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"size" : "1024x1024", | ||
"idiom" : "ios-marketing", | ||
"filename" : "Icon-1024.png", | ||
"scale" : "1x" | ||
} | ||
], | ||
"info" : { | ||
"version" : 1, | ||
"author" : "xcode" | ||
} | ||
} |
Binary file added
BIN
+198 KB
Example/ProgressRingExample/Assets.xcassets/AppIcon.appiconset/Icon-1024.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.81 KB
Example/ProgressRingExample/Assets.xcassets/AppIcon.appiconset/Icon-20.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.94 KB
Example/ProgressRingExample/Assets.xcassets/AppIcon.appiconset/Icon-20@2x.png
Oops, something went wrong.
Binary file added
BIN
+4.19 KB
Example/ProgressRingExample/Assets.xcassets/AppIcon.appiconset/Icon-20@3x.png
Oops, something went wrong.
Binary file added
BIN
+2.28 KB
Example/ProgressRingExample/Assets.xcassets/AppIcon.appiconset/Icon-29.png
Oops, something went wrong.
Binary file added
BIN
+4.04 KB
Example/ProgressRingExample/Assets.xcassets/AppIcon.appiconset/Icon-29@2x.png
Oops, something went wrong.
Binary file added
BIN
+6.21 KB
Example/ProgressRingExample/Assets.xcassets/AppIcon.appiconset/Icon-29@3x.png
Oops, something went wrong.
Binary file added
BIN
+2.94 KB
Example/ProgressRingExample/Assets.xcassets/AppIcon.appiconset/Icon-40.png
Oops, something went wrong.
Binary file added
BIN
+5.63 KB
Example/ProgressRingExample/Assets.xcassets/AppIcon.appiconset/Icon-40@2x.png
Oops, something went wrong.
Binary file added
BIN
+9.2 KB
Example/ProgressRingExample/Assets.xcassets/AppIcon.appiconset/Icon-40@3x.png
Oops, something went wrong.
Binary file added
BIN
+9.2 KB
Example/ProgressRingExample/Assets.xcassets/AppIcon.appiconset/Icon-60@2x.png
Oops, something went wrong.
Binary file added
BIN
+15.6 KB
Example/ProgressRingExample/Assets.xcassets/AppIcon.appiconset/Icon-60@3x.png
Oops, something went wrong.
Binary file added
BIN
+5.38 KB
Example/ProgressRingExample/Assets.xcassets/AppIcon.appiconset/Icon-76.png
Oops, something went wrong.
Binary file added
BIN
+12.5 KB
Example/ProgressRingExample/Assets.xcassets/AppIcon.appiconset/Icon-76@2x.png
Oops, something went wrong.
Binary file added
BIN
+14.2 KB
Example/ProgressRingExample/Assets.xcassets/AppIcon.appiconset/Icon-83.5@2x.png
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"info" : { | ||
"version" : 1, | ||
"author" : "xcode" | ||
} | ||
} |
50 changes: 50 additions & 0 deletions
50
Example/ProgressRingExample/Base.lproj/LaunchScreen.storyboard
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="14313.18" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="p1u-gk-dyy"> | ||
<device id="retina4_7" orientation="portrait"> | ||
<adaptation id="fullscreen"/> | ||
</device> | ||
<dependencies> | ||
<deployment identifier="iOS"/> | ||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14283.14"/> | ||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> | ||
</dependencies> | ||
<scenes> | ||
<!--View Controller--> | ||
<scene sceneID="EHf-IW-A2E"> | ||
<objects> | ||
<viewController id="01J-lp-oVM" sceneMemberID="viewController"> | ||
<layoutGuides> | ||
<viewControllerLayoutGuide type="top" id="JTm-5d-v0A"/> | ||
<viewControllerLayoutGuide type="bottom" id="j55-Bt-gks"/> | ||
</layoutGuides> | ||
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3"> | ||
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/> | ||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> | ||
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> | ||
</view> | ||
<navigationItem key="navigationItem" id="nqk-xI-E1n"/> | ||
</viewController> | ||
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/> | ||
</objects> | ||
<point key="canvasLocation" x="991.20000000000005" y="374.66266866566718"/> | ||
</scene> | ||
<!--Navigation Controller--> | ||
<scene sceneID="a5o-8V-zgA"> | ||
<objects> | ||
<navigationController automaticallyAdjustsScrollViewInsets="NO" id="p1u-gk-dyy" sceneMemberID="viewController"> | ||
<toolbarItems/> | ||
<navigationBar key="navigationBar" contentMode="scaleToFill" insetsLayoutMarginsFromSafeArea="NO" id="HZ8-Uf-7fz"> | ||
<rect key="frame" x="0.0" y="20" width="375" height="44"/> | ||
<autoresizingMask key="autoresizingMask"/> | ||
</navigationBar> | ||
<nil name="viewControllers"/> | ||
<connections> | ||
<segue destination="01J-lp-oVM" kind="relationship" relationship="rootViewController" id="bFO-3k-WF1"/> | ||
</connections> | ||
</navigationController> | ||
<placeholder placeholderIdentifier="IBFirstResponder" id="6RH-oF-PQV" userLabel="First Responder" sceneMemberID="firstResponder"/> | ||
</objects> | ||
<point key="canvasLocation" x="52" y="374.66266866566718"/> | ||
</scene> | ||
</scenes> | ||
</document> |
Oops, something went wrong.