├── intro1.gif ├── PulsingRadar-Swift ├── Images.xcassets │ ├── UK.imageset │ │ ├── UK@2x.png │ │ └── Contents.json │ ├── AppIcon.appiconset │ │ └── Contents.json │ └── LaunchImage.launchimage │ │ └── Contents.json ├── ViewController.swift ├── Info.plist ├── Base.lproj │ └── Main.storyboard ├── AppDelegate.swift ├── Launch Screen.storyboard └── PulsingRadarView.swift ├── PulsingRadar-Swift.xcodeproj ├── xcuserdata │ ├── apple.xcuserdatad │ │ ├── xcdebugger │ │ │ └── Breakpoints_v2.xcbkptlist │ │ └── xcschemes │ │ │ ├── xcschememanagement.plist │ │ │ └── PulsingRadar-Swift.xcscheme │ └── zhangao.xcuserdatad │ │ └── xcschemes │ │ ├── xcschememanagement.plist │ │ └── PulsingRadar-Swift.xcscheme ├── project.xcworkspace │ ├── contents.xcworkspacedata │ ├── xcuserdata │ │ ├── apple.xcuserdatad │ │ │ └── UserInterfaceState.xcuserstate │ │ └── zhangao.xcuserdatad │ │ │ └── UserInterfaceState.xcuserstate │ └── xcshareddata │ │ └── PulsingRadar-Swift.xccheckout └── project.pbxproj ├── README.md └── PulsingRadar-SwiftTests ├── Info.plist └── PulsingRadar_SwiftTests.swift /intro1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhangao0086/iOS-PulsingRadar-Swift/HEAD/intro1.gif -------------------------------------------------------------------------------- /PulsingRadar-Swift/Images.xcassets/UK.imageset/UK@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhangao0086/iOS-PulsingRadar-Swift/HEAD/PulsingRadar-Swift/Images.xcassets/UK.imageset/UK@2x.png -------------------------------------------------------------------------------- /PulsingRadar-Swift.xcodeproj/xcuserdata/apple.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | -------------------------------------------------------------------------------- /PulsingRadar-Swift.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /PulsingRadar-Swift.xcodeproj/project.xcworkspace/xcuserdata/apple.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhangao0086/iOS-PulsingRadar-Swift/HEAD/PulsingRadar-Swift.xcodeproj/project.xcworkspace/xcuserdata/apple.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /PulsingRadar-Swift.xcodeproj/project.xcworkspace/xcuserdata/zhangao.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zhangao0086/iOS-PulsingRadar-Swift/HEAD/PulsingRadar-Swift.xcodeproj/project.xcworkspace/xcuserdata/zhangao.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | iOS PulsingRadar Swift 2 | =================== 3 | 4 | Updated for Xcode 7 with Swift 2.0 5 | --- 6 | 7 | CSDN 博客 8 | ![GIF](https://raw.githubusercontent.com/zhangao0086/iOS-PulsingRadar-Swift/master/intro1.gif) -------------------------------------------------------------------------------- /PulsingRadar-Swift/Images.xcassets/UK.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "scale" : "2x", 10 | "filename" : "UK@2x.png" 11 | } 12 | ], 13 | "info" : { 14 | "version" : 1, 15 | "author" : "xcode" 16 | } 17 | } -------------------------------------------------------------------------------- /PulsingRadar-Swift.xcodeproj/xcuserdata/apple.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | PulsingRadar-Swift.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | 18F4E8271983B2E40074CF14 16 | 17 | primary 18 | 19 | 20 | 18F4E8391983B2E40074CF14 21 | 22 | primary 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /PulsingRadar-Swift.xcodeproj/xcuserdata/zhangao.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | PulsingRadar-Swift.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | 18F4E8271983B2E40074CF14 16 | 17 | primary 18 | 19 | 20 | 18F4E8391983B2E40074CF14 21 | 22 | primary 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /PulsingRadar-SwiftTests/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 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /PulsingRadar-Swift/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "40x40", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "60x60", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "ipad", 20 | "size" : "29x29", 21 | "scale" : "1x" 22 | }, 23 | { 24 | "idiom" : "ipad", 25 | "size" : "29x29", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "ipad", 30 | "size" : "40x40", 31 | "scale" : "1x" 32 | }, 33 | { 34 | "idiom" : "ipad", 35 | "size" : "40x40", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "ipad", 40 | "size" : "76x76", 41 | "scale" : "1x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "76x76", 46 | "scale" : "2x" 47 | } 48 | ], 49 | "info" : { 50 | "version" : 1, 51 | "author" : "xcode" 52 | } 53 | } -------------------------------------------------------------------------------- /PulsingRadar-SwiftTests/PulsingRadar_SwiftTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // PulsingRadar_SwiftTests.swift 3 | // PulsingRadar-SwiftTests 4 | // 5 | // Created by ZhangAo on 14-7-26. 6 | // Copyright (c) 2014年 ZA. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import XCTest 11 | 12 | class PulsingRadar_SwiftTests: XCTestCase { 13 | 14 | override func setUp() { 15 | super.setUp() 16 | // Put setup code here. This method is called before the invocation of each test method in the class. 17 | } 18 | 19 | override func tearDown() { 20 | // Put teardown code here. This method is called after the invocation of each test method in the class. 21 | super.tearDown() 22 | } 23 | 24 | func testExample() { 25 | // This is an example of a functional test case. 26 | XCTAssert(true, "Pass") 27 | } 28 | 29 | func testPerformanceExample() { 30 | // This is an example of a performance test case. 31 | self.measureBlock() { 32 | // Put the code you want to measure the time of here. 33 | } 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /PulsingRadar-Swift/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // PulsingRadar-Swift 4 | // 5 | // Created by ZhangAo on 14-7-26. 6 | // Copyright (c) 2014年 ZA. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class ViewController: UIViewController { 12 | 13 | var radarView: PulsingRadarView! 14 | override func viewDidLoad() { 15 | super.viewDidLoad() 16 | 17 | let radarSize = CGSizeMake(self.view.bounds.size.width, self.view.bounds.size.width) 18 | radarView = PulsingRadarView(frame: CGRectMake(0,(self.view.bounds.size.height-radarSize.height)/2, 19 | radarSize.width,radarSize.height)) 20 | self.view.addSubview(radarView) 21 | 22 | NSTimer.scheduledTimerWithTimeInterval(0.5, target: radarView, selector: Selector("addOrReplaceItem"), userInfo: nil, repeats: true) 23 | } 24 | 25 | override func didReceiveMemoryWarning() { 26 | super.didReceiveMemoryWarning() 27 | // Dispose of any resources that can be recreated. 28 | } 29 | 30 | deinit { 31 | print("deallocated") 32 | 33 | } 34 | 35 | } 36 | 37 | -------------------------------------------------------------------------------- /PulsingRadar-Swift/Images.xcassets/LaunchImage.launchimage/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "orientation" : "portrait", 5 | "idiom" : "iphone", 6 | "extent" : "full-screen", 7 | "minimum-system-version" : "7.0", 8 | "scale" : "2x" 9 | }, 10 | { 11 | "orientation" : "portrait", 12 | "idiom" : "iphone", 13 | "subtype" : "retina4", 14 | "extent" : "full-screen", 15 | "minimum-system-version" : "7.0", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "orientation" : "portrait", 20 | "idiom" : "ipad", 21 | "extent" : "full-screen", 22 | "minimum-system-version" : "7.0", 23 | "scale" : "1x" 24 | }, 25 | { 26 | "orientation" : "landscape", 27 | "idiom" : "ipad", 28 | "extent" : "full-screen", 29 | "minimum-system-version" : "7.0", 30 | "scale" : "1x" 31 | }, 32 | { 33 | "orientation" : "portrait", 34 | "idiom" : "ipad", 35 | "extent" : "full-screen", 36 | "minimum-system-version" : "7.0", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "orientation" : "landscape", 41 | "idiom" : "ipad", 42 | "extent" : "full-screen", 43 | "minimum-system-version" : "7.0", 44 | "scale" : "2x" 45 | } 46 | ], 47 | "info" : { 48 | "version" : 1, 49 | "author" : "xcode" 50 | } 51 | } -------------------------------------------------------------------------------- /PulsingRadar-Swift/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 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | Launch Screen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | UISupportedInterfaceOrientations~ipad 40 | 41 | UIInterfaceOrientationPortrait 42 | UIInterfaceOrientationPortraitUpsideDown 43 | UIInterfaceOrientationLandscapeLeft 44 | UIInterfaceOrientationLandscapeRight 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /PulsingRadar-Swift/Base.lproj/Main.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 | -------------------------------------------------------------------------------- /PulsingRadar-Swift.xcodeproj/project.xcworkspace/xcshareddata/PulsingRadar-Swift.xccheckout: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDESourceControlProjectFavoriteDictionaryKey 6 | 7 | IDESourceControlProjectIdentifier 8 | 3E1DECAC-4819-4A77-814E-4AA384037C9B 9 | IDESourceControlProjectName 10 | project 11 | IDESourceControlProjectOriginsDictionary 12 | 13 | 2DAA53AE210454AF62B85271D06A589B0AF35BCA 14 | https://github.com/zhangao0086/iOS-PulsingRadar-Swift.git 15 | 16 | IDESourceControlProjectPath 17 | PulsingRadar-Swift.xcodeproj/project.xcworkspace 18 | IDESourceControlProjectRelativeInstallPathDictionary 19 | 20 | 2DAA53AE210454AF62B85271D06A589B0AF35BCA 21 | ../.. 22 | 23 | IDESourceControlProjectURL 24 | https://github.com/zhangao0086/iOS-PulsingRadar-Swift.git 25 | IDESourceControlProjectVersion 26 | 111 27 | IDESourceControlProjectWCCIdentifier 28 | 2DAA53AE210454AF62B85271D06A589B0AF35BCA 29 | IDESourceControlProjectWCConfigurations 30 | 31 | 32 | IDESourceControlRepositoryExtensionIdentifierKey 33 | public.vcs.git 34 | IDESourceControlWCCIdentifierKey 35 | 2DAA53AE210454AF62B85271D06A589B0AF35BCA 36 | IDESourceControlWCCName 37 | iOS-PulsingRadar-Swift 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /PulsingRadar-Swift/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // PulsingRadar-Swift 4 | // 5 | // Created by ZhangAo on 14-7-26. 6 | // Copyright (c) 2014年 ZA. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | var window: UIWindow? 15 | 16 | func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject : AnyObject]?) -> Bool { 17 | return true 18 | } 19 | 20 | func applicationWillResignActive(application: UIApplication) { 21 | // 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. 22 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 23 | } 24 | 25 | func applicationDidEnterBackground(application: UIApplication) { 26 | // 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. 27 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 28 | } 29 | 30 | func applicationWillEnterForeground(application: UIApplication) { 31 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 32 | } 33 | 34 | func applicationDidBecomeActive(application: UIApplication) { 35 | // 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. 36 | } 37 | 38 | func applicationWillTerminate(application: UIApplication) { 39 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 40 | } 41 | 42 | 43 | } 44 | 45 | -------------------------------------------------------------------------------- /PulsingRadar-Swift.xcodeproj/xcuserdata/apple.xcuserdatad/xcschemes/PulsingRadar-Swift.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 33 | 39 | 40 | 41 | 42 | 43 | 49 | 50 | 51 | 52 | 61 | 62 | 68 | 69 | 70 | 71 | 72 | 73 | 79 | 80 | 86 | 87 | 88 | 89 | 91 | 92 | 95 | 96 | 97 | -------------------------------------------------------------------------------- /PulsingRadar-Swift/Launch Screen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 27 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /PulsingRadar-Swift.xcodeproj/xcuserdata/zhangao.xcuserdatad/xcschemes/PulsingRadar-Swift.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 29 | 35 | 36 | 37 | 38 | 39 | 44 | 45 | 47 | 53 | 54 | 55 | 56 | 57 | 63 | 64 | 65 | 66 | 67 | 68 | 78 | 80 | 86 | 87 | 88 | 89 | 90 | 91 | 97 | 99 | 105 | 106 | 107 | 108 | 110 | 111 | 114 | 115 | 116 | -------------------------------------------------------------------------------- /PulsingRadar-Swift/PulsingRadarView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // PulsingRadarView.swift 3 | // PulsingRadar-Swift 4 | // 5 | // Created by ZhangAo on 14-7-26. 6 | // Copyright (c) 2014年 ZA. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | import QuartzCore 11 | 12 | class PRButton: UIButton { 13 | 14 | override init(frame: CGRect) { 15 | super.init(frame: frame) 16 | self.alpha = 0 17 | } 18 | 19 | required init(coder aDecoder: NSCoder) { 20 | fatalError("init(coder:) has not been implemented") 21 | } 22 | 23 | override func didMoveToWindow() { 24 | super.didMoveToWindow() 25 | if self.window != nil { 26 | UIView.animateWithDuration(1, animations: { 27 | self.alpha = 1 28 | }) 29 | } 30 | } 31 | 32 | override func removeFromSuperview() { 33 | UIView.beginAnimations("", context: nil) 34 | UIView.setAnimationDuration(1) 35 | self.alpha = 0 36 | UIView.setAnimationDidStopSelector(Selector("callSuperRemoveFromSuperview")) 37 | UIView.commitAnimations() 38 | } 39 | 40 | private func callSuperRemoveFromSuperview() { 41 | super.removeFromSuperview() 42 | } 43 | } 44 | 45 | 46 | class PulsingRadarView: UIView { 47 | 48 | let itemSize = CGSizeMake(44, 44) 49 | var items = NSMutableArray() 50 | weak var animationLayer: CALayer? 51 | 52 | override init(frame: CGRect) { 53 | super.init(frame: frame) 54 | 55 | NSNotificationCenter.defaultCenter().addObserver(self, 56 | selector: Selector("resume"), 57 | name: UIApplicationDidBecomeActiveNotification, 58 | object: nil) 59 | } 60 | 61 | required init(coder aDecoder: NSCoder) { 62 | fatalError("init(coder:) has not been implemented") 63 | } 64 | 65 | func resume() { 66 | if let animationLayer = self.animationLayer { 67 | animationLayer.removeFromSuperlayer() 68 | self.setNeedsDisplay() 69 | } 70 | } 71 | 72 | deinit { 73 | NSNotificationCenter.defaultCenter().removeObserver(self) 74 | } 75 | 76 | func addOrReplaceItem() { 77 | let maxCount = 10 78 | 79 | let radarButton = PRButton(frame: CGRectMake(0, 0, itemSize.width, itemSize.height)) 80 | radarButton.setImage(UIImage(named: "UK"), forState: UIControlState.Normal) 81 | 82 | repeat { 83 | let center = generateCenterPointInRadar() 84 | radarButton.center = CGPointMake(center.x, center.y) 85 | } while (itemFrameIntersectsInOtherItem(radarButton.frame)) 86 | 87 | self.addSubview(radarButton) 88 | items.addObject(radarButton) 89 | 90 | if items.count > maxCount { 91 | let view = items.objectAtIndex(0) as! UIView 92 | view.removeFromSuperview() 93 | items.removeObject(view) 94 | } 95 | } 96 | 97 | private func itemFrameIntersectsInOtherItem (frame: CGRect) -> Bool { 98 | for item in items { 99 | if CGRectIntersectsRect(item.frame, frame) { 100 | return true 101 | } 102 | } 103 | return false 104 | } 105 | 106 | private func generateCenterPointInRadar() -> CGPoint{ 107 | let angle = Double(arc4random()) % 360 108 | let radius = Double(arc4random()) % (Double)((self.bounds.size.width - itemSize.width)/2) 109 | let x = cos(angle) * radius 110 | let y = sin(angle) * radius 111 | return CGPointMake(CGFloat(x) + self.bounds.size.width / 2, CGFloat(y) + self.bounds.size.height / 2) 112 | } 113 | 114 | override func drawRect(rect: CGRect) { 115 | UIColor.whiteColor().setFill() 116 | UIRectFill(rect) 117 | 118 | let pulsingCount = 6 119 | let animationDuration: Double = 4 120 | 121 | let animationLayer = CALayer() 122 | for var i = 0; i < pulsingCount; i++ { 123 | let pulsingLayer = CALayer() 124 | pulsingLayer.frame = CGRectMake(0, 0, rect.size.width, rect.size.height) 125 | pulsingLayer.borderColor = UIColor.grayColor().CGColor 126 | pulsingLayer.borderWidth = 1 127 | pulsingLayer.cornerRadius = rect.size.height / 2 128 | 129 | let defaultCurve = CAMediaTimingFunction(name: kCAMediaTimingFunctionDefault) 130 | 131 | let animationGroup = CAAnimationGroup() 132 | animationGroup.fillMode = kCAFillModeBackwards 133 | animationGroup.beginTime = CACurrentMediaTime() + Double(i) * animationDuration / Double(pulsingCount) 134 | animationGroup.duration = animationDuration 135 | animationGroup.repeatCount = HUGE 136 | animationGroup.timingFunction = defaultCurve 137 | 138 | let scaleAnimation = CABasicAnimation(keyPath: "transform.scale") 139 | scaleAnimation.fromValue = Double(0) 140 | scaleAnimation.toValue = Double(1.5) 141 | 142 | let opacityAnimation = CAKeyframeAnimation(keyPath: "opacity") 143 | opacityAnimation.values = [Double(1),Double(0.7),Double(0)] 144 | opacityAnimation.keyTimes = [Double(0),Double(0.5),Double(1)] 145 | 146 | animationGroup.animations = [scaleAnimation,opacityAnimation] 147 | 148 | pulsingLayer.addAnimation(animationGroup, forKey: "pulsing") 149 | animationLayer.addSublayer(pulsingLayer) 150 | } 151 | self.layer.addSublayer(animationLayer) 152 | self.animationLayer = animationLayer 153 | } 154 | } -------------------------------------------------------------------------------- /PulsingRadar-Swift.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 18F4E82E1983B2E40074CF14 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 18F4E82D1983B2E40074CF14 /* AppDelegate.swift */; }; 11 | 18F4E8301983B2E40074CF14 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 18F4E82F1983B2E40074CF14 /* ViewController.swift */; }; 12 | 18F4E8331983B2E40074CF14 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 18F4E8311983B2E40074CF14 /* Main.storyboard */; }; 13 | 18F4E8351983B2E40074CF14 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 18F4E8341983B2E40074CF14 /* Images.xcassets */; }; 14 | 18F4E8411983B2E40074CF14 /* PulsingRadar_SwiftTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 18F4E8401983B2E40074CF14 /* PulsingRadar_SwiftTests.swift */; }; 15 | 18F4E84B1983B33E0074CF14 /* PulsingRadarView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 18F4E84A1983B33E0074CF14 /* PulsingRadarView.swift */; }; 16 | 9CCEE2ED1BA90822005CD1A1 /* Launch Screen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 9CCEE2EC1BA90822005CD1A1 /* Launch Screen.storyboard */; }; 17 | /* End PBXBuildFile section */ 18 | 19 | /* Begin PBXContainerItemProxy section */ 20 | 18F4E83B1983B2E40074CF14 /* PBXContainerItemProxy */ = { 21 | isa = PBXContainerItemProxy; 22 | containerPortal = 18F4E8201983B2E40074CF14 /* Project object */; 23 | proxyType = 1; 24 | remoteGlobalIDString = 18F4E8271983B2E40074CF14; 25 | remoteInfo = "PulsingRadar-Swift"; 26 | }; 27 | /* End PBXContainerItemProxy section */ 28 | 29 | /* Begin PBXFileReference section */ 30 | 18F4E8281983B2E40074CF14 /* PulsingRadar-Swift.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "PulsingRadar-Swift.app"; sourceTree = BUILT_PRODUCTS_DIR; }; 31 | 18F4E82C1983B2E40074CF14 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 32 | 18F4E82D1983B2E40074CF14 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 33 | 18F4E82F1983B2E40074CF14 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 34 | 18F4E8321983B2E40074CF14 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 35 | 18F4E8341983B2E40074CF14 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = ""; }; 36 | 18F4E83A1983B2E40074CF14 /* PulsingRadar-SwiftTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "PulsingRadar-SwiftTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; 37 | 18F4E83F1983B2E40074CF14 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 38 | 18F4E8401983B2E40074CF14 /* PulsingRadar_SwiftTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PulsingRadar_SwiftTests.swift; sourceTree = ""; }; 39 | 18F4E84A1983B33E0074CF14 /* PulsingRadarView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PulsingRadarView.swift; sourceTree = ""; }; 40 | 9CCEE2EC1BA90822005CD1A1 /* Launch Screen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = "Launch Screen.storyboard"; sourceTree = ""; }; 41 | /* End PBXFileReference section */ 42 | 43 | /* Begin PBXFrameworksBuildPhase section */ 44 | 18F4E8251983B2E40074CF14 /* Frameworks */ = { 45 | isa = PBXFrameworksBuildPhase; 46 | buildActionMask = 2147483647; 47 | files = ( 48 | ); 49 | runOnlyForDeploymentPostprocessing = 0; 50 | }; 51 | 18F4E8371983B2E40074CF14 /* Frameworks */ = { 52 | isa = PBXFrameworksBuildPhase; 53 | buildActionMask = 2147483647; 54 | files = ( 55 | ); 56 | runOnlyForDeploymentPostprocessing = 0; 57 | }; 58 | /* End PBXFrameworksBuildPhase section */ 59 | 60 | /* Begin PBXGroup section */ 61 | 18F4E81F1983B2E40074CF14 = { 62 | isa = PBXGroup; 63 | children = ( 64 | 18F4E82A1983B2E40074CF14 /* PulsingRadar-Swift */, 65 | 18F4E83D1983B2E40074CF14 /* PulsingRadar-SwiftTests */, 66 | 18F4E8291983B2E40074CF14 /* Products */, 67 | ); 68 | sourceTree = ""; 69 | }; 70 | 18F4E8291983B2E40074CF14 /* Products */ = { 71 | isa = PBXGroup; 72 | children = ( 73 | 18F4E8281983B2E40074CF14 /* PulsingRadar-Swift.app */, 74 | 18F4E83A1983B2E40074CF14 /* PulsingRadar-SwiftTests.xctest */, 75 | ); 76 | name = Products; 77 | sourceTree = ""; 78 | }; 79 | 18F4E82A1983B2E40074CF14 /* PulsingRadar-Swift */ = { 80 | isa = PBXGroup; 81 | children = ( 82 | 18F4E82D1983B2E40074CF14 /* AppDelegate.swift */, 83 | 18F4E82F1983B2E40074CF14 /* ViewController.swift */, 84 | 18F4E84A1983B33E0074CF14 /* PulsingRadarView.swift */, 85 | 18F4E8311983B2E40074CF14 /* Main.storyboard */, 86 | 9CCEE2EC1BA90822005CD1A1 /* Launch Screen.storyboard */, 87 | 18F4E8341983B2E40074CF14 /* Images.xcassets */, 88 | 18F4E82B1983B2E40074CF14 /* Supporting Files */, 89 | ); 90 | path = "PulsingRadar-Swift"; 91 | sourceTree = ""; 92 | }; 93 | 18F4E82B1983B2E40074CF14 /* Supporting Files */ = { 94 | isa = PBXGroup; 95 | children = ( 96 | 18F4E82C1983B2E40074CF14 /* Info.plist */, 97 | ); 98 | name = "Supporting Files"; 99 | sourceTree = ""; 100 | }; 101 | 18F4E83D1983B2E40074CF14 /* PulsingRadar-SwiftTests */ = { 102 | isa = PBXGroup; 103 | children = ( 104 | 18F4E8401983B2E40074CF14 /* PulsingRadar_SwiftTests.swift */, 105 | 18F4E83E1983B2E40074CF14 /* Supporting Files */, 106 | ); 107 | path = "PulsingRadar-SwiftTests"; 108 | sourceTree = ""; 109 | }; 110 | 18F4E83E1983B2E40074CF14 /* Supporting Files */ = { 111 | isa = PBXGroup; 112 | children = ( 113 | 18F4E83F1983B2E40074CF14 /* Info.plist */, 114 | ); 115 | name = "Supporting Files"; 116 | sourceTree = ""; 117 | }; 118 | /* End PBXGroup section */ 119 | 120 | /* Begin PBXNativeTarget section */ 121 | 18F4E8271983B2E40074CF14 /* PulsingRadar-Swift */ = { 122 | isa = PBXNativeTarget; 123 | buildConfigurationList = 18F4E8441983B2E40074CF14 /* Build configuration list for PBXNativeTarget "PulsingRadar-Swift" */; 124 | buildPhases = ( 125 | 18F4E8241983B2E40074CF14 /* Sources */, 126 | 18F4E8251983B2E40074CF14 /* Frameworks */, 127 | 18F4E8261983B2E40074CF14 /* Resources */, 128 | ); 129 | buildRules = ( 130 | ); 131 | dependencies = ( 132 | ); 133 | name = "PulsingRadar-Swift"; 134 | productName = "PulsingRadar-Swift"; 135 | productReference = 18F4E8281983B2E40074CF14 /* PulsingRadar-Swift.app */; 136 | productType = "com.apple.product-type.application"; 137 | }; 138 | 18F4E8391983B2E40074CF14 /* PulsingRadar-SwiftTests */ = { 139 | isa = PBXNativeTarget; 140 | buildConfigurationList = 18F4E8471983B2E40074CF14 /* Build configuration list for PBXNativeTarget "PulsingRadar-SwiftTests" */; 141 | buildPhases = ( 142 | 18F4E8361983B2E40074CF14 /* Sources */, 143 | 18F4E8371983B2E40074CF14 /* Frameworks */, 144 | 18F4E8381983B2E40074CF14 /* Resources */, 145 | ); 146 | buildRules = ( 147 | ); 148 | dependencies = ( 149 | 18F4E83C1983B2E40074CF14 /* PBXTargetDependency */, 150 | ); 151 | name = "PulsingRadar-SwiftTests"; 152 | productName = "PulsingRadar-SwiftTests"; 153 | productReference = 18F4E83A1983B2E40074CF14 /* PulsingRadar-SwiftTests.xctest */; 154 | productType = "com.apple.product-type.bundle.unit-test"; 155 | }; 156 | /* End PBXNativeTarget section */ 157 | 158 | /* Begin PBXProject section */ 159 | 18F4E8201983B2E40074CF14 /* Project object */ = { 160 | isa = PBXProject; 161 | attributes = { 162 | LastSwiftUpdateCheck = 0710; 163 | LastUpgradeCheck = 0710; 164 | ORGANIZATIONNAME = ZA; 165 | TargetAttributes = { 166 | 18F4E8271983B2E40074CF14 = { 167 | CreatedOnToolsVersion = 6.0; 168 | }; 169 | 18F4E8391983B2E40074CF14 = { 170 | CreatedOnToolsVersion = 6.0; 171 | TestTargetID = 18F4E8271983B2E40074CF14; 172 | }; 173 | }; 174 | }; 175 | buildConfigurationList = 18F4E8231983B2E40074CF14 /* Build configuration list for PBXProject "PulsingRadar-Swift" */; 176 | compatibilityVersion = "Xcode 3.2"; 177 | developmentRegion = English; 178 | hasScannedForEncodings = 0; 179 | knownRegions = ( 180 | en, 181 | Base, 182 | ); 183 | mainGroup = 18F4E81F1983B2E40074CF14; 184 | productRefGroup = 18F4E8291983B2E40074CF14 /* Products */; 185 | projectDirPath = ""; 186 | projectRoot = ""; 187 | targets = ( 188 | 18F4E8271983B2E40074CF14 /* PulsingRadar-Swift */, 189 | 18F4E8391983B2E40074CF14 /* PulsingRadar-SwiftTests */, 190 | ); 191 | }; 192 | /* End PBXProject section */ 193 | 194 | /* Begin PBXResourcesBuildPhase section */ 195 | 18F4E8261983B2E40074CF14 /* Resources */ = { 196 | isa = PBXResourcesBuildPhase; 197 | buildActionMask = 2147483647; 198 | files = ( 199 | 9CCEE2ED1BA90822005CD1A1 /* Launch Screen.storyboard in Resources */, 200 | 18F4E8331983B2E40074CF14 /* Main.storyboard in Resources */, 201 | 18F4E8351983B2E40074CF14 /* Images.xcassets in Resources */, 202 | ); 203 | runOnlyForDeploymentPostprocessing = 0; 204 | }; 205 | 18F4E8381983B2E40074CF14 /* Resources */ = { 206 | isa = PBXResourcesBuildPhase; 207 | buildActionMask = 2147483647; 208 | files = ( 209 | ); 210 | runOnlyForDeploymentPostprocessing = 0; 211 | }; 212 | /* End PBXResourcesBuildPhase section */ 213 | 214 | /* Begin PBXSourcesBuildPhase section */ 215 | 18F4E8241983B2E40074CF14 /* Sources */ = { 216 | isa = PBXSourcesBuildPhase; 217 | buildActionMask = 2147483647; 218 | files = ( 219 | 18F4E84B1983B33E0074CF14 /* PulsingRadarView.swift in Sources */, 220 | 18F4E8301983B2E40074CF14 /* ViewController.swift in Sources */, 221 | 18F4E82E1983B2E40074CF14 /* AppDelegate.swift in Sources */, 222 | ); 223 | runOnlyForDeploymentPostprocessing = 0; 224 | }; 225 | 18F4E8361983B2E40074CF14 /* Sources */ = { 226 | isa = PBXSourcesBuildPhase; 227 | buildActionMask = 2147483647; 228 | files = ( 229 | 18F4E8411983B2E40074CF14 /* PulsingRadar_SwiftTests.swift in Sources */, 230 | ); 231 | runOnlyForDeploymentPostprocessing = 0; 232 | }; 233 | /* End PBXSourcesBuildPhase section */ 234 | 235 | /* Begin PBXTargetDependency section */ 236 | 18F4E83C1983B2E40074CF14 /* PBXTargetDependency */ = { 237 | isa = PBXTargetDependency; 238 | target = 18F4E8271983B2E40074CF14 /* PulsingRadar-Swift */; 239 | targetProxy = 18F4E83B1983B2E40074CF14 /* PBXContainerItemProxy */; 240 | }; 241 | /* End PBXTargetDependency section */ 242 | 243 | /* Begin PBXVariantGroup section */ 244 | 18F4E8311983B2E40074CF14 /* Main.storyboard */ = { 245 | isa = PBXVariantGroup; 246 | children = ( 247 | 18F4E8321983B2E40074CF14 /* Base */, 248 | ); 249 | name = Main.storyboard; 250 | sourceTree = ""; 251 | }; 252 | /* End PBXVariantGroup section */ 253 | 254 | /* Begin XCBuildConfiguration section */ 255 | 18F4E8421983B2E40074CF14 /* Debug */ = { 256 | isa = XCBuildConfiguration; 257 | buildSettings = { 258 | ALWAYS_SEARCH_USER_PATHS = NO; 259 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 260 | CLANG_CXX_LIBRARY = "libc++"; 261 | CLANG_ENABLE_MODULES = YES; 262 | CLANG_ENABLE_OBJC_ARC = YES; 263 | CLANG_WARN_BOOL_CONVERSION = YES; 264 | CLANG_WARN_CONSTANT_CONVERSION = YES; 265 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 266 | CLANG_WARN_EMPTY_BODY = YES; 267 | CLANG_WARN_ENUM_CONVERSION = YES; 268 | CLANG_WARN_INT_CONVERSION = YES; 269 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 270 | CLANG_WARN_UNREACHABLE_CODE = YES; 271 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 272 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 273 | COPY_PHASE_STRIP = NO; 274 | ENABLE_STRICT_OBJC_MSGSEND = YES; 275 | ENABLE_TESTABILITY = YES; 276 | GCC_C_LANGUAGE_STANDARD = gnu99; 277 | GCC_DYNAMIC_NO_PIC = NO; 278 | GCC_OPTIMIZATION_LEVEL = 0; 279 | GCC_PREPROCESSOR_DEFINITIONS = ( 280 | "DEBUG=1", 281 | "$(inherited)", 282 | ); 283 | GCC_SYMBOLS_PRIVATE_EXTERN = NO; 284 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 285 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 286 | GCC_WARN_UNDECLARED_SELECTOR = YES; 287 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 288 | GCC_WARN_UNUSED_FUNCTION = YES; 289 | GCC_WARN_UNUSED_VARIABLE = YES; 290 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 291 | MTL_ENABLE_DEBUG_INFO = YES; 292 | ONLY_ACTIVE_ARCH = YES; 293 | SDKROOT = iphoneos; 294 | SWIFT_OBJC_BRIDGING_HEADER = ""; 295 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 296 | TARGETED_DEVICE_FAMILY = "1,2"; 297 | }; 298 | name = Debug; 299 | }; 300 | 18F4E8431983B2E40074CF14 /* Release */ = { 301 | isa = XCBuildConfiguration; 302 | buildSettings = { 303 | ALWAYS_SEARCH_USER_PATHS = NO; 304 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 305 | CLANG_CXX_LIBRARY = "libc++"; 306 | CLANG_ENABLE_MODULES = YES; 307 | CLANG_ENABLE_OBJC_ARC = YES; 308 | CLANG_WARN_BOOL_CONVERSION = YES; 309 | CLANG_WARN_CONSTANT_CONVERSION = YES; 310 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 311 | CLANG_WARN_EMPTY_BODY = YES; 312 | CLANG_WARN_ENUM_CONVERSION = YES; 313 | CLANG_WARN_INT_CONVERSION = YES; 314 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 315 | CLANG_WARN_UNREACHABLE_CODE = YES; 316 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 317 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 318 | COPY_PHASE_STRIP = YES; 319 | ENABLE_NS_ASSERTIONS = NO; 320 | ENABLE_STRICT_OBJC_MSGSEND = YES; 321 | GCC_C_LANGUAGE_STANDARD = gnu99; 322 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 323 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 324 | GCC_WARN_UNDECLARED_SELECTOR = YES; 325 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 326 | GCC_WARN_UNUSED_FUNCTION = YES; 327 | GCC_WARN_UNUSED_VARIABLE = YES; 328 | IPHONEOS_DEPLOYMENT_TARGET = 8.0; 329 | MTL_ENABLE_DEBUG_INFO = NO; 330 | SDKROOT = iphoneos; 331 | SWIFT_OBJC_BRIDGING_HEADER = ""; 332 | TARGETED_DEVICE_FAMILY = "1,2"; 333 | VALIDATE_PRODUCT = YES; 334 | }; 335 | name = Release; 336 | }; 337 | 18F4E8451983B2E40074CF14 /* Debug */ = { 338 | isa = XCBuildConfiguration; 339 | buildSettings = { 340 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 341 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 342 | CLANG_ENABLE_MODULES = YES; 343 | INFOPLIST_FILE = "PulsingRadar-Swift/Info.plist"; 344 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 345 | PRODUCT_BUNDLE_IDENTIFIER = "zhangao.${PRODUCT_NAME:rfc1034identifier}"; 346 | PRODUCT_NAME = "$(TARGET_NAME)"; 347 | SWIFT_OBJC_BRIDGING_HEADER = ""; 348 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 349 | }; 350 | name = Debug; 351 | }; 352 | 18F4E8461983B2E40074CF14 /* Release */ = { 353 | isa = XCBuildConfiguration; 354 | buildSettings = { 355 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 356 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; 357 | CLANG_ENABLE_MODULES = YES; 358 | INFOPLIST_FILE = "PulsingRadar-Swift/Info.plist"; 359 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 360 | PRODUCT_BUNDLE_IDENTIFIER = "zhangao.${PRODUCT_NAME:rfc1034identifier}"; 361 | PRODUCT_NAME = "$(TARGET_NAME)"; 362 | SWIFT_OBJC_BRIDGING_HEADER = ""; 363 | }; 364 | name = Release; 365 | }; 366 | 18F4E8481983B2E40074CF14 /* Debug */ = { 367 | isa = XCBuildConfiguration; 368 | buildSettings = { 369 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/PulsingRadar-Swift.app/PulsingRadar-Swift"; 370 | FRAMEWORK_SEARCH_PATHS = ( 371 | "$(SDKROOT)/Developer/Library/Frameworks", 372 | "$(inherited)", 373 | ); 374 | GCC_PREPROCESSOR_DEFINITIONS = ( 375 | "DEBUG=1", 376 | "$(inherited)", 377 | ); 378 | INFOPLIST_FILE = "PulsingRadar-SwiftTests/Info.plist"; 379 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 380 | PRODUCT_BUNDLE_IDENTIFIER = "zhangao.${PRODUCT_NAME:rfc1034identifier}"; 381 | PRODUCT_NAME = "$(TARGET_NAME)"; 382 | TEST_HOST = "$(BUNDLE_LOADER)"; 383 | }; 384 | name = Debug; 385 | }; 386 | 18F4E8491983B2E40074CF14 /* Release */ = { 387 | isa = XCBuildConfiguration; 388 | buildSettings = { 389 | BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/PulsingRadar-Swift.app/PulsingRadar-Swift"; 390 | FRAMEWORK_SEARCH_PATHS = ( 391 | "$(SDKROOT)/Developer/Library/Frameworks", 392 | "$(inherited)", 393 | ); 394 | INFOPLIST_FILE = "PulsingRadar-SwiftTests/Info.plist"; 395 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 396 | PRODUCT_BUNDLE_IDENTIFIER = "zhangao.${PRODUCT_NAME:rfc1034identifier}"; 397 | PRODUCT_NAME = "$(TARGET_NAME)"; 398 | TEST_HOST = "$(BUNDLE_LOADER)"; 399 | }; 400 | name = Release; 401 | }; 402 | /* End XCBuildConfiguration section */ 403 | 404 | /* Begin XCConfigurationList section */ 405 | 18F4E8231983B2E40074CF14 /* Build configuration list for PBXProject "PulsingRadar-Swift" */ = { 406 | isa = XCConfigurationList; 407 | buildConfigurations = ( 408 | 18F4E8421983B2E40074CF14 /* Debug */, 409 | 18F4E8431983B2E40074CF14 /* Release */, 410 | ); 411 | defaultConfigurationIsVisible = 0; 412 | defaultConfigurationName = Release; 413 | }; 414 | 18F4E8441983B2E40074CF14 /* Build configuration list for PBXNativeTarget "PulsingRadar-Swift" */ = { 415 | isa = XCConfigurationList; 416 | buildConfigurations = ( 417 | 18F4E8451983B2E40074CF14 /* Debug */, 418 | 18F4E8461983B2E40074CF14 /* Release */, 419 | ); 420 | defaultConfigurationIsVisible = 0; 421 | defaultConfigurationName = Release; 422 | }; 423 | 18F4E8471983B2E40074CF14 /* Build configuration list for PBXNativeTarget "PulsingRadar-SwiftTests" */ = { 424 | isa = XCConfigurationList; 425 | buildConfigurations = ( 426 | 18F4E8481983B2E40074CF14 /* Debug */, 427 | 18F4E8491983B2E40074CF14 /* Release */, 428 | ); 429 | defaultConfigurationIsVisible = 0; 430 | defaultConfigurationName = Release; 431 | }; 432 | /* End XCConfigurationList section */ 433 | }; 434 | rootObject = 18F4E8201983B2E40074CF14 /* Project object */; 435 | } 436 | --------------------------------------------------------------------------------