Skip to content

Commit

Permalink
Adding internal extension and happy-path polish.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerrad Thramer committed Dec 8, 2017
1 parent 31a7cc7 commit 3c66121
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
12 changes: 12 additions & 0 deletions MapboxDirections.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
8D381B651FDB0899008D5A58 /* noDestinationName.json in Resources */ = {isa = PBXBuildFile; fileRef = 8D381B601FD9F5B1008D5A58 /* noDestinationName.json */; };
8D381B661FDB089E008D5A58 /* apiDestinationName.json in Resources */ = {isa = PBXBuildFile; fileRef = 8D381B621FDB01D1008D5A58 /* apiDestinationName.json */; };
8D381B671FDB089F008D5A58 /* apiDestinationName.json in Resources */ = {isa = PBXBuildFile; fileRef = 8D381B621FDB01D1008D5A58 /* apiDestinationName.json */; };
8D381B6A1FDB101F008D5A58 /* String.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8D381B691FDB101F008D5A58 /* String.swift */; };
C51538CC1E807FF00093FF3E /* MBAttribute.swift in Sources */ = {isa = PBXBuildFile; fileRef = C51538CB1E807FF00093FF3E /* MBAttribute.swift */; };
C5247D711E818A24004B6154 /* AnnotationTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = C5247D701E818A24004B6154 /* AnnotationTests.swift */; };
C52552B91FA15D5900B1545C /* MBVisualInstruction.swift in Sources */ = {isa = PBXBuildFile; fileRef = C52552B81FA15D5900B1545C /* MBVisualInstruction.swift */; };
Expand Down Expand Up @@ -200,6 +201,7 @@
358D48851E2EAB4500F32A65 /* MBRouteOptions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MBRouteOptions.m; sourceTree = "<group>"; };
8D381B601FD9F5B1008D5A58 /* noDestinationName.json */ = {isa = PBXFileReference; lastKnownFileType = text.json; path = noDestinationName.json; sourceTree = "<group>"; };
8D381B621FDB01D1008D5A58 /* apiDestinationName.json */ = {isa = PBXFileReference; explicitFileType = text.json; path = apiDestinationName.json; sourceTree = "<group>"; };
8D381B691FDB101F008D5A58 /* String.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = String.swift; sourceTree = "<group>"; };
C51538CB1E807FF00093FF3E /* MBAttribute.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MBAttribute.swift; sourceTree = "<group>"; };
C5247D701E818A24004B6154 /* AnnotationTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AnnotationTests.swift; sourceTree = "<group>"; };
C52552B81FA15D5900B1545C /* MBVisualInstruction.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MBVisualInstruction.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -364,6 +366,14 @@
path = Responses;
sourceTree = "<group>";
};
8D381B681FDB1009008D5A58 /* Extensions */ = {
isa = PBXGroup;
children = (
8D381B691FDB101F008D5A58 /* String.swift */,
);
path = Extensions;
sourceTree = "<group>";
};
C5247D721E818A8D004B6154 /* annotation */ = {
isa = PBXGroup;
children = (
Expand All @@ -383,6 +393,7 @@
DA6C9D891CAE442B00094FBC /* MapboxDirections */ = {
isa = PBXGroup;
children = (
8D381B681FDB1009008D5A58 /* Extensions */,
DA6C9D8A1CAE442B00094FBC /* MapboxDirections.h */,
DD6254731AE70CB700017857 /* MBDirections.swift */,
DAC05F171CFC075300FA0071 /* MBRoute.swift */,
Expand Down Expand Up @@ -1095,6 +1106,7 @@
DA6C9DA61CAE462800094FBC /* MBDirections.swift in Sources */,
C55FB44B1F6AEBF6006BD1E9 /* MBSpokenInstruction.swift in Sources */,
C58EA7AA1E9D7EAD008F98CE /* MBCongestion.swift in Sources */,
8D381B6A1FDB101F008D5A58 /* String.swift in Sources */,
C57D55011DB5669600B94B74 /* MBIntersection.swift in Sources */,
DA2E03E91CB0E0B000D1269A /* MBRouteStep.swift in Sources */,
);
Expand Down
5 changes: 5 additions & 0 deletions MapboxDirections/Extensions/String.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import Foundation

extension String {
var isNotEmpty: Bool { return !isEmpty }
}

0 comments on commit 3c66121

Please sign in to comment.