Skip to content

Commit fb85d4c

Browse files
Today extension works
1 parent 17674cb commit fb85d4c

File tree

4 files changed

+11
-12
lines changed

4 files changed

+11
-12
lines changed

try! Today/Base.lproj/TodayInterface.storyboard

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="12121" systemVersion="16F73" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="LtN-0K-VPa">
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13529" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="LtN-0K-VPa">
33
<device id="retina4_7" orientation="portrait">
44
<adaptation id="fullscreen"/>
55
</device>
66
<dependencies>
7-
<deployment identifier="iOS"/>
8-
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="12089"/>
7+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13527"/>
98
<capability name="Constraints to layout margins" minToolsVersion="6.0"/>
109
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
1110
</dependencies>
@@ -31,7 +30,7 @@
3130
<color key="textColor" red="0.94117647059999998" green="0.31372549020000001" blue="0.1137254902" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
3231
<nil key="highlightedColor"/>
3332
</label>
34-
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="New York, NY" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="1Oc-dq-p35">
33+
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Bangalore, India" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="1Oc-dq-p35">
3534
<rect key="frame" x="90" y="35" width="203" height="21"/>
3635
<constraints>
3736
<constraint firstAttribute="height" constant="21" id="Nd1-DG-JST"/>
@@ -40,14 +39,14 @@
4039
<nil key="textColor"/>
4140
<nil key="highlightedColor"/>
4241
</label>
43-
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="Logo.png" translatesAutoresizingMaskIntoConstraints="NO" id="RvP-kc-YDV">
42+
<imageView userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="Logo_BLR.png" translatesAutoresizingMaskIntoConstraints="NO" id="RvP-kc-YDV">
4443
<rect key="frame" x="11" y="33" width="68" height="68"/>
4544
<constraints>
4645
<constraint firstAttribute="height" constant="68" id="Iao-0u-D7H"/>
4746
<constraint firstAttribute="width" constant="68" id="Z5b-gD-nQf"/>
4847
</constraints>
4948
</imageView>
50-
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="🗽🐥🎉" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="k4I-Vd-A7T" userLabel="Formatted Type">
49+
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="🇮🇳🐥🎉" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="k4I-Vd-A7T" userLabel="Formatted Type">
5150
<rect key="frame" x="90" y="59" width="203" height="18"/>
5251
<constraints>
5352
<constraint firstAttribute="height" constant="18" id="n0L-V5-RhZ"/>
@@ -120,6 +119,6 @@
120119
</scene>
121120
</scenes>
122121
<resources>
123-
<image name="Logo.png" width="2405" height="2405"/>
122+
<image name="Logo_BLR.png" width="1024" height="1024"/>
124123
</resources>
125124
</document>

try! Today/TodayController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class TodayController: UIViewController, NCWidgetProviding {
4141
private var currentSession: Session? {
4242
guard let sessionBlocks = SessionBlock.all else { return nil }
4343

44-
let est = TimeZone(abbreviation: "EST")!
44+
let est = TimeZone(abbreviation: "IST")!
4545
let date = Date().addingTimeInterval((Double)(est.secondsFromGMT()))
4646
let currentSessionBlock = sessionBlocks.filter("startTime < %@ AND endTime > %@", date, date)
4747
return currentSessionBlock.first?.sessions.first

trySwift.xcodeproj/project.pbxproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
FAA54F121D91305200EC9E80 /* NibLoadableView.swift in Sources */ = {isa = PBXBuildFile; fileRef = FAA54F111D91305200EC9E80 /* NibLoadableView.swift */; };
7979
FAA54F141D9130F900EC9E80 /* UITableViewExtension.swift in Sources */ = {isa = PBXBuildFile; fileRef = FAA54F131D9130F900EC9E80 /* UITableViewExtension.swift */; };
8080
FABA73BE1D6D9ABB0081D887 /* OfficeHoursDetailViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = FABA73BD1D6D9ABB0081D887 /* OfficeHoursDetailViewController.swift */; };
81-
FAC488181F5719BF00CFA660 /* Logo.png in Resources */ = {isa = PBXBuildFile; fileRef = FAC488171F5719BF00CFA660 /* Logo.png */; };
81+
FAC488181F5719BF00CFA660 /* Logo_BLR.png in Resources */ = {isa = PBXBuildFile; fileRef = FAC488171F5719BF00CFA660 /* Logo_BLR.png */; };
8282
FAF1DE121D5FDBD600D710C3 /* VenueTableViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = FAF1DE111D5FDBD600D710C3 /* VenueTableViewController.swift */; };
8383
FAF1DE151D5FDD3700D710C3 /* VenueHeaderTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = FAF1DE131D5FDD3700D710C3 /* VenueHeaderTableViewCell.swift */; };
8484
FAF1DE161D5FDD3700D710C3 /* VenueHeaderTableViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = FAF1DE141D5FDD3700D710C3 /* VenueHeaderTableViewCell.xib */; };
@@ -254,7 +254,7 @@
254254
FAA54F111D91305200EC9E80 /* NibLoadableView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = NibLoadableView.swift; sourceTree = "<group>"; };
255255
FAA54F131D9130F900EC9E80 /* UITableViewExtension.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = UITableViewExtension.swift; sourceTree = "<group>"; };
256256
FABA73BD1D6D9ABB0081D887 /* OfficeHoursDetailViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = OfficeHoursDetailViewController.swift; sourceTree = "<group>"; };
257-
FAC488171F5719BF00CFA660 /* Logo.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = Logo.png; path = "try! Today/Logo.png"; sourceTree = SOURCE_ROOT; };
257+
FAC488171F5719BF00CFA660 /* Logo_BLR.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = Logo_BLR.png; path = "try! Today/Logo_BLR.png"; sourceTree = SOURCE_ROOT; };
258258
FAF1DE111D5FDBD600D710C3 /* VenueTableViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = VenueTableViewController.swift; sourceTree = "<group>"; };
259259
FAF1DE131D5FDD3700D710C3 /* VenueHeaderTableViewCell.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = VenueHeaderTableViewCell.swift; sourceTree = "<group>"; };
260260
FAF1DE141D5FDD3700D710C3 /* VenueHeaderTableViewCell.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = VenueHeaderTableViewCell.xib; sourceTree = "<group>"; };
@@ -702,7 +702,7 @@
702702
isa = PBXGroup;
703703
children = (
704704
2222DA991E63CA9000D754A1 /* Info.plist */,
705-
FAC488171F5719BF00CFA660 /* Logo.png */,
705+
FAC488171F5719BF00CFA660 /* Logo_BLR.png */,
706706
2222DA9B1E63CA9000D754A1 /* TodayController.swift */,
707707
2222DAA61E63F0E300D754A1 /* TodayInterface.storyboard */,
708708
2222DA9E1E63CA9000D754A1 /* try! Today.entitlements */,
@@ -977,7 +977,7 @@
977977
isa = PBXResourcesBuildPhase;
978978
buildActionMask = 2147483647;
979979
files = (
980-
FAC488181F5719BF00CFA660 /* Logo.png in Resources */,
980+
FAC488181F5719BF00CFA660 /* Logo_BLR.png in Resources */,
981981
2222DAA41E63F0E300D754A1 /* TodayInterface.storyboard in Resources */,
982982
2222DAB11E64036A00D754A1 /* Localizable.strings in Resources */,
983983
);

0 commit comments

Comments
 (0)