Browse Source

Calculation changes for sunrise/sunset!

v1.2.4
Abhishek Banthia 9 years ago
parent
commit
6d17d0f5fd
  1. 2
      Clocker/Floating Window/CLFloatingWindowController.m
  2. 3
      Clocker/Model/CLTimezoneData.h
  3. 116
      Clocker/Model/CLTimezoneData.m
  4. 2
      Clocker/PanelController.m
  5. 1
      Clocker/Preferences/CLPreferencesViewController.m
  6. 1
      Clocker/Utilities/CommonStrings.h
  7. 1
      Clocker/Utilities/CommonStrings.m
  8. 10
      Clocker/en.lproj/Panel.xib
  9. 16
      Clocker/ja.lproj/Panel.xib
  10. 16
      Clocker/zh-Hans.lproj/Panel.xib
  11. 16
      Clocker/zh-Hant.lproj/Panel.xib

2
Clocker/Floating Window/CLFloatingWindowController.m

@ -111,7 +111,7 @@ NSString *const CLTimezoneCellIdentifier = @"timeZoneCell";
CLTimezoneData *dataObject = [CLTimezoneData getCustomObject:self.defaultPreferences[row]];
cell.sunriseSetTime.stringValue = [dataObject getFormattedSunriseOrSunsetTime];
cell.sunriseSetTime.stringValue = [dataObject getFormattedSunriseOrSunsetTimeAndSliderValue:self.futureSliderValue];
NSTextView *customLabel = (NSTextView*)[cell.relativeDate.window
fieldEditor:YES

3
Clocker/Model/CLTimezoneData.h

@ -40,8 +40,7 @@ typedef enum : NSUInteger {
- (NSString *)getDateForTimeZoneWithFutureSliderValue:(NSInteger)futureSliderValue andDisplayType:(CLDateDisplayType)type;
- (NSString *)formatStringShouldContainCity:(BOOL)value;
- (NSString *)getMenuTitle;
- (NSString *)getFormattedSunriseOrSunsetTime;
- (NSImage *)getFormattedSunriseOrSunsetImage;
-(NSString *)getFormattedSunriseOrSunsetTimeAndSliderValue:(NSInteger)sliderValue;
/*
- (NSString *)getFormattedSunriseOrSunsetTimeAndSunImage:(CLTimezoneCellView *)cell;

116
Clocker/Model/CLTimezoneData.m

@ -172,13 +172,54 @@
return [dateFormatter stringFromDate:newDate];
}
-(void)initializeSunriseSunset
- (void)retrieveLatitudeAndLongitudeWithSearchString:(NSString *)formattedString
{
EDSunriseSet *sunriseSetObject = [EDSunriseSet sunrisesetWithDate:[NSDate date]
timezone:[NSTimeZone timeZoneWithName:self.timezoneID]
latitude:self.latitude.doubleValue longitude:self.longitude.doubleValue];
self.sunriseTime = sunriseSetObject.sunrise;
self.sunsetTime = sunriseSetObject.sunset;
NSString *preferredLanguage = [NSLocale preferredLanguages][0];
if (![CLAPI isUserConnectedToInternet])
{
/*Show some kind of information label*/
return;
}
NSArray* words = [formattedString componentsSeparatedByCharactersInSet :[NSCharacterSet whitespaceAndNewlineCharacterSet]];
formattedString = [words componentsJoinedByString:CLEmptyString];
NSString *urlString = [NSString stringWithFormat:CLLocationSearchURL, formattedString, preferredLanguage];
[CLAPI dataTaskWithServicePath:urlString
bySender:self
withCompletionBlock:^(NSError *error, NSDictionary *json) {
dispatch_async(dispatch_get_main_queue(), ^{
if (error || [json[@"status"] isEqualToString:@"ZERO_RESULTS"])
{
return;
}
[json[@"results"] enumerateObjectsUsingBlock:^(NSDictionary * _Nonnull dictionary, NSUInteger idx, BOOL * _Nonnull stop)
{
if ([dictionary[CLPlaceIdentifier] isEqualToString:self.place_id])
{
//We have a match
NSDictionary *latLang = [[dictionary objectForKey:@"geometry"] objectForKey:@"location"];
self.latitude = [NSString stringWithFormat:@"%@", latLang[@"lat"]];
self.longitude = [NSString stringWithFormat:@"%@", latLang[@"lng"]];
}
}];
});
}];
}
- (NSString *)getLocalCurrentDate
@ -258,7 +299,8 @@
}
}
- (NSString *)getDateForTimeZoneWithFutureSliderValue:(NSInteger)futureSliderValue andDisplayType:(CLDateDisplayType)type
- (NSString *)getDateForTimeZoneWithFutureSliderValue:(NSInteger)futureSliderValue
andDisplayType:(CLDateDisplayType)type
{
NSCalendar *currentCalendar = [NSCalendar autoupdatingCurrentCalendar];
NSDate *newDate = [currentCalendar dateByAddingUnit:NSCalendarUnitMinute
@ -385,42 +427,50 @@
return menuTitle;
}
-(void)initializeSunriseSunsetWithSliderValue:(NSInteger)sliderValue
{
if (!self.latitude || !self.longitude)
{
//Retrieve the values using Google Places API
[self retrieveLatitudeAndLongitudeWithSearchString:self.formattedAddress];
}
EDSunriseSet *sunriseSetObject = [EDSunriseSet sunrisesetWithDate:[[NSCalendar autoupdatingCurrentCalendar]
dateByAddingUnit:NSCalendarUnitMinute
value:sliderValue
toDate:[NSDate date]
options:kNilOptions]
timezone:[NSTimeZone timeZoneWithName:self.timezoneID]
latitude:self.latitude.doubleValue
longitude:self.longitude.doubleValue];
self.sunriseTime = sunriseSetObject.sunrise;
self.sunsetTime = sunriseSetObject.sunset;
}
-(NSString *)getFormattedSunriseOrSunsetTime
-(NSString *)getFormattedSunriseOrSunsetTimeAndSliderValue:(NSInteger)sliderValue
{
[self initializeSunriseSunset];
/* We have to call this everytime so that we get an updated value everytime! */
[self initializeSunriseSunsetWithSliderValue:sliderValue];
if (!self.sunriseTime && !self.sunsetTime)
{
return CLEmptyString;
}
NSString *timezoneDate = [self getFullFledgedDateForTime];
self.sunriseOrSunset = [self.sunriseTime isLaterThanOrEqualTo:[NSDate date]];
NSDateFormatter *formatter = [NSDateFormatter new];
formatter.dateFormat = @"yyyy-MM-d hh:mm a";
NSDate *formattedDate = [formatter dateFromString:timezoneDate];
NSCalendar *currentCalendar = [NSCalendar autoupdatingCurrentCalendar];
self.sunriseOrSunset = [self.sunriseTime isLaterThanOrEqualTo:formattedDate];
NSDate *newDate = self.sunriseOrSunset ?
[currentCalendar dateByAddingUnit:NSCalendarUnitMinute
value:0
toDate:self.sunriseTime
options:kNilOptions] :
[currentCalendar dateByAddingUnit:NSCalendarUnitMinute
value:0
toDate:self.sunsetTime
options:kNilOptions];
NSDate *newDate = self.sunriseOrSunset ? self.sunriseTime : self.sunsetTime;
NSDateFormatter *dateFormatter = [NSDateFormatter new];
dateFormatter.dateStyle = kCFDateFormatterNoStyle;
[dateFormatter setTimeZone:[NSTimeZone timeZoneWithName:self.timezoneID]];
NSNumber *is24HourFormatSelected = [[NSUserDefaults standardUserDefaults] objectForKey:CL24hourFormatSelectedKey];
is24HourFormatSelected.boolValue ? [dateFormatter setDateFormat:@"HH:mm"] : [dateFormatter setDateFormat:@"hh:mm a"];
@ -431,17 +481,21 @@
}
- (NSString *)getFullFledgedDateForTime
- (NSString *)getFullFledgedDateForTimeWithDate:(NSDate *)date
{
NSCalendar *currentCalendar = [NSCalendar autoupdatingCurrentCalendar];
NSDate *newDate = [currentCalendar dateByAddingUnit:NSCalendarUnitMinute
value:0
toDate:[NSDate date]
toDate:date
options:kNilOptions];
NSDateFormatter *dateFormatter = [NSDateFormatter new];
[dateFormatter setDateFormat:@"yyyy-MM-dd hh:mm a"];
[dateFormatter setTimeZone:[NSTimeZone timeZoneWithName:self.timezoneID]];
return [dateFormatter stringFromDate:newDate];
}

2
Clocker/PanelController.m

@ -283,7 +283,7 @@ static PanelController *sharedPanel = nil;
CLTimezoneData *dataObject = [CLTimezoneData getCustomObject:self.defaultPreferences[row]];
cell.sunriseSetTime.stringValue = [dataObject getFormattedSunriseOrSunsetTime];
cell.sunriseSetTime.stringValue = [dataObject getFormattedSunriseOrSunsetTimeAndSliderValue:self.futureSliderValue];
NSTextView *customLabel = (NSTextView*)[cell.relativeDate.window
fieldEditor:YES

1
Clocker/Preferences/CLPreferencesViewController.m

@ -31,7 +31,6 @@ NSString *const CLParseTimezoneSelectionClassIdentifier = @"CLTimezoneSelection"
NSString *const CLParseTimezoneNameProperty = @"areaName";
NSString *const CLMaxCharactersReachedError = @"Only 50 characters allowed!";
NSString *const CLNoInternetConnectivityError = @"You're offline, maybe?";
NSString *const CLLocationSearchURL = @"https://maps.googleapis.com/maps/api/geocode/json?address=%@&key=AIzaSyCyf2knCi6KiKuDJLYDBD3Odq5dt4c-_KI&language=%@";
NSString *const CLTimezoneSearchURL = @"https://maps.googleapis.com/maps/api/timezone/json?location=%@&timestamp=%f&key=AIzaSyCyf2knCi6KiKuDJLYDBD3Odq5dt4c-_KI";
NSString *const CLTryAgainMessage = @"Try again, maybe?";

1
Clocker/Utilities/CommonStrings.h

@ -30,5 +30,6 @@ extern NSString *const CLDisplayFutureSliderKey;
extern NSString *const CLStartAtLogin;
extern NSString *const CLShowAppInForeground;
extern NSString *const CLSunriseSunsetTime;
extern NSString *const CLLocationSearchURL;
@end

1
Clocker/Utilities/CommonStrings.m

@ -28,5 +28,6 @@ NSString *const CLShowPlaceInMenu = @"showPlaceName";
NSString *const CLStartAtLogin = @"startAtLogin";
NSString *const CLShowAppInForeground = @"displayAppAsForegroundApp";
NSString *const CLSunriseSunsetTime = @"showSunriseSetTime";
NSString *const CLLocationSearchURL = @"https://maps.googleapis.com/maps/api/geocode/json?address=%@&key=AIzaSyCyf2knCi6KiKuDJLYDBD3Odq5dt4c-_KI&language=%@";
@end

10
Clocker/en.lproj/Panel.xib

@ -97,7 +97,7 @@
</textFieldCell>
</textField>
<imageView horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="7OQ-cr-VJS">
<rect key="frame" x="203" y="6" width="20" height="20"/>
<rect key="frame" x="199" y="6" width="20" height="20"/>
<constraints>
<constraint firstAttribute="width" constant="20" id="Vmz-Ji-Y0Q"/>
<constraint firstAttribute="height" constant="20" id="qNj-EP-era"/>
@ -105,13 +105,13 @@
<imageCell key="cell" refusesFirstResponder="YES" alignment="left" imageScaling="proportionallyDown" id="U2f-NK-Gua"/>
</imageView>
<textField verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="uOg-ij-alO">
<rect key="frame" x="224" y="9" width="49" height="17"/>
<rect key="frame" x="220" y="8" width="49" height="17"/>
<constraints>
<constraint firstAttribute="height" constant="17" id="89H-r0-Dnh"/>
<constraint firstAttribute="width" constant="45" id="8KH-Ks-d4T"/>
</constraints>
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" alignment="center" placeholderString="" id="qpH-kn-cMT">
<font key="font" size="11" name="SFUIDisplay-Ultralight"/>
<font key="font" size="11" name="SFUIDisplay-Light"/>
<color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
@ -121,9 +121,9 @@
<constraint firstItem="QUd-7D-q14" firstAttribute="leading" secondItem="qbN-ba-fho" secondAttribute="leading" constant="10" id="0Qz-Ev-efP"/>
<constraint firstItem="uOg-ij-alO" firstAttribute="leading" secondItem="7OQ-cr-VJS" secondAttribute="trailing" constant="3" id="6bc-YK-jtD"/>
<constraint firstItem="etF-33-bCB" firstAttribute="top" secondItem="qbN-ba-fho" secondAttribute="top" constant="5" id="Lct-kG-usb"/>
<constraint firstAttribute="trailing" secondItem="uOg-ij-alO" secondAttribute="trailing" constant="8" id="Siz-97-mYl"/>
<constraint firstAttribute="trailing" secondItem="uOg-ij-alO" secondAttribute="trailing" constant="12" id="Siz-97-mYl"/>
<constraint firstItem="QUd-7D-q14" firstAttribute="top" secondItem="etF-33-bCB" secondAttribute="bottom" constant="2" id="VO6-Zn-eA3"/>
<constraint firstItem="uOg-ij-alO" firstAttribute="top" secondItem="vnv-J2-7r1" secondAttribute="bottom" constant="-5" id="j2E-3l-6B2"/>
<constraint firstItem="uOg-ij-alO" firstAttribute="top" secondItem="vnv-J2-7r1" secondAttribute="bottom" constant="-4" id="j2E-3l-6B2"/>
<constraint firstItem="7OQ-cr-VJS" firstAttribute="top" secondItem="vnv-J2-7r1" secondAttribute="bottom" constant="-5" id="uZd-y0-d6A"/>
<constraint firstItem="etF-33-bCB" firstAttribute="leading" secondItem="qbN-ba-fho" secondAttribute="leading" constant="9" id="ueW-ow-ZRq"/>
<constraint firstItem="vnv-J2-7r1" firstAttribute="top" secondItem="qbN-ba-fho" secondAttribute="top" constant="5" id="vGp-XY-wiJ"/>

16
Clocker/ja.lproj/Panel.xib

@ -73,7 +73,7 @@
</connections>
</textField>
<imageView horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="32s-jh-CdZ">
<rect key="frame" x="203" y="1" width="20" height="20"/>
<rect key="frame" x="199" y="5" width="20" height="20"/>
<constraints>
<constraint firstAttribute="height" constant="20" id="LN0-5e-Uw7"/>
<constraint firstAttribute="width" constant="20" id="Txb-Xo-JPl"/>
@ -81,13 +81,13 @@
<imageCell key="cell" refusesFirstResponder="YES" alignment="left" imageScaling="proportionallyDown" id="eLr-Js-g3E"/>
</imageView>
<textField verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="6CM-3s-ZNr">
<rect key="frame" x="224" y="4" width="49" height="17"/>
<rect key="frame" x="220" y="7" width="49" height="17"/>
<constraints>
<constraint firstAttribute="height" constant="17" id="Mho-dg-5yL"/>
<constraint firstAttribute="width" constant="45" id="zNy-He-GNo"/>
</constraints>
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" alignment="center" placeholderString="" id="Yxf-ti-4jB">
<font key="font" size="11" name="SFUIDisplay-Ultralight"/>
<font key="font" size="11" name="SFUIDisplay-Light"/>
<color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
@ -105,7 +105,7 @@
</textFieldCell>
</textField>
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" tag="101" preferredMaxLayoutWidth="110" translatesAutoresizingMaskIntoConstraints="NO" id="vnv-J2-7r1">
<rect key="frame" x="159" y="21" width="114" height="35"/>
<rect key="frame" x="159" y="20" width="114" height="35"/>
<constraints>
<constraint firstAttribute="height" constant="35" id="3WU-de-OQL"/>
<constraint firstAttribute="width" constant="110" id="cQV-gJ-zMz"/>
@ -119,14 +119,14 @@
</subviews>
<constraints>
<constraint firstItem="QUd-7D-q14" firstAttribute="leading" secondItem="qbN-ba-fho" secondAttribute="leading" constant="10" id="0Qz-Ev-efP"/>
<constraint firstItem="32s-jh-CdZ" firstAttribute="top" secondItem="vnv-J2-7r1" secondAttribute="bottom" id="D0i-kM-n59"/>
<constraint firstItem="32s-jh-CdZ" firstAttribute="top" secondItem="vnv-J2-7r1" secondAttribute="bottom" constant="-5" id="D0i-kM-n59"/>
<constraint firstItem="etF-33-bCB" firstAttribute="top" secondItem="qbN-ba-fho" secondAttribute="top" constant="5" id="Lct-kG-usb"/>
<constraint firstItem="QUd-7D-q14" firstAttribute="top" secondItem="etF-33-bCB" secondAttribute="bottom" constant="2" id="VO6-Zn-eA3"/>
<constraint firstItem="vnv-J2-7r1" firstAttribute="top" secondItem="qbN-ba-fho" secondAttribute="top" constant="4" id="aN5-p4-LEq"/>
<constraint firstAttribute="trailing" secondItem="6CM-3s-ZNr" secondAttribute="trailing" constant="8" id="qcf-ej-oC8"/>
<constraint firstItem="vnv-J2-7r1" firstAttribute="top" secondItem="qbN-ba-fho" secondAttribute="top" constant="5" id="aN5-p4-LEq"/>
<constraint firstAttribute="trailing" secondItem="6CM-3s-ZNr" secondAttribute="trailing" constant="12" id="qcf-ej-oC8"/>
<constraint firstItem="etF-33-bCB" firstAttribute="leading" secondItem="qbN-ba-fho" secondAttribute="leading" constant="9" id="ueW-ow-ZRq"/>
<constraint firstItem="6CM-3s-ZNr" firstAttribute="leading" secondItem="32s-jh-CdZ" secondAttribute="trailing" constant="3" id="xMj-d9-yh6"/>
<constraint firstItem="6CM-3s-ZNr" firstAttribute="top" secondItem="vnv-J2-7r1" secondAttribute="bottom" id="yfd-bg-v0L"/>
<constraint firstItem="6CM-3s-ZNr" firstAttribute="top" secondItem="vnv-J2-7r1" secondAttribute="bottom" constant="-4" id="yfd-bg-v0L"/>
<constraint firstAttribute="trailing" secondItem="vnv-J2-7r1" secondAttribute="trailing" constant="8" id="zXo-eA-0bQ"/>
</constraints>
<connections>

16
Clocker/zh-Hans.lproj/Panel.xib

@ -73,7 +73,7 @@
</connections>
</textField>
<imageView horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="Ids-Uo-ci6">
<rect key="frame" x="203" y="4" width="20" height="20"/>
<rect key="frame" x="199" y="5" width="20" height="20"/>
<constraints>
<constraint firstAttribute="height" constant="20" id="Tug-eT-kM6"/>
<constraint firstAttribute="width" constant="20" id="fw4-xM-R7B"/>
@ -81,13 +81,13 @@
<imageCell key="cell" refusesFirstResponder="YES" alignment="left" imageScaling="proportionallyDown" id="SQ7-zC-HEd"/>
</imageView>
<textField verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="6Lf-Yu-mLH">
<rect key="frame" x="224" y="7" width="49" height="17"/>
<rect key="frame" x="220" y="7" width="49" height="17"/>
<constraints>
<constraint firstAttribute="height" constant="17" id="Erg-ja-DqV"/>
<constraint firstAttribute="width" constant="45" id="r3N-lG-lbQ"/>
</constraints>
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" alignment="center" placeholderString="" id="7e9-Cy-Q3m">
<font key="font" size="11" name="SFUIDisplay-Ultralight"/>
<font key="font" size="11" name="SFUIDisplay-Light"/>
<color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
@ -105,7 +105,7 @@
</textFieldCell>
</textField>
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" tag="101" preferredMaxLayoutWidth="110" translatesAutoresizingMaskIntoConstraints="NO" id="vnv-J2-7r1">
<rect key="frame" x="159" y="24" width="114" height="35"/>
<rect key="frame" x="159" y="20" width="114" height="35"/>
<constraints>
<constraint firstAttribute="height" constant="35" id="3WU-de-OQL"/>
<constraint firstAttribute="width" constant="110" id="cQV-gJ-zMz"/>
@ -119,13 +119,13 @@
</subviews>
<constraints>
<constraint firstItem="QUd-7D-q14" firstAttribute="leading" secondItem="qbN-ba-fho" secondAttribute="leading" constant="10" id="0Qz-Ev-efP"/>
<constraint firstItem="6Lf-Yu-mLH" firstAttribute="top" secondItem="vnv-J2-7r1" secondAttribute="bottom" id="6Mc-mV-px7"/>
<constraint firstAttribute="trailing" secondItem="6Lf-Yu-mLH" secondAttribute="trailing" constant="8" id="EFk-L8-w4w"/>
<constraint firstItem="6Lf-Yu-mLH" firstAttribute="top" secondItem="vnv-J2-7r1" secondAttribute="bottom" constant="-4" id="6Mc-mV-px7"/>
<constraint firstAttribute="trailing" secondItem="6Lf-Yu-mLH" secondAttribute="trailing" constant="12" id="EFk-L8-w4w"/>
<constraint firstItem="etF-33-bCB" firstAttribute="top" secondItem="qbN-ba-fho" secondAttribute="top" constant="5" id="Lct-kG-usb"/>
<constraint firstItem="6Lf-Yu-mLH" firstAttribute="leading" secondItem="Ids-Uo-ci6" secondAttribute="trailing" constant="3" id="Mh9-0D-cWP"/>
<constraint firstItem="vnv-J2-7r1" firstAttribute="top" secondItem="qbN-ba-fho" secondAttribute="top" constant="1" id="Syb-YN-Gsr"/>
<constraint firstItem="vnv-J2-7r1" firstAttribute="top" secondItem="qbN-ba-fho" secondAttribute="top" constant="5" id="Syb-YN-Gsr"/>
<constraint firstItem="QUd-7D-q14" firstAttribute="top" secondItem="etF-33-bCB" secondAttribute="bottom" constant="2" id="VO6-Zn-eA3"/>
<constraint firstItem="Ids-Uo-ci6" firstAttribute="top" secondItem="vnv-J2-7r1" secondAttribute="bottom" id="sfI-UU-HeB"/>
<constraint firstItem="Ids-Uo-ci6" firstAttribute="top" secondItem="vnv-J2-7r1" secondAttribute="bottom" constant="-5" id="sfI-UU-HeB"/>
<constraint firstItem="etF-33-bCB" firstAttribute="leading" secondItem="qbN-ba-fho" secondAttribute="leading" constant="9" id="ueW-ow-ZRq"/>
<constraint firstAttribute="trailing" secondItem="vnv-J2-7r1" secondAttribute="trailing" constant="8" id="zXo-eA-0bQ"/>
</constraints>

16
Clocker/zh-Hant.lproj/Panel.xib

@ -73,7 +73,7 @@
</connections>
</textField>
<imageView horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="6Ea-8S-iTa">
<rect key="frame" x="203" y="4" width="20" height="20"/>
<rect key="frame" x="199" y="5" width="20" height="20"/>
<constraints>
<constraint firstAttribute="height" constant="20" id="TYa-1I-fQJ"/>
<constraint firstAttribute="width" constant="20" id="b27-EB-ZA9"/>
@ -81,13 +81,13 @@
<imageCell key="cell" refusesFirstResponder="YES" alignment="left" imageScaling="proportionallyDown" id="k54-vn-T4E"/>
</imageView>
<textField verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="L5a-d8-SuC">
<rect key="frame" x="224" y="7" width="49" height="17"/>
<rect key="frame" x="220" y="7" width="49" height="17"/>
<constraints>
<constraint firstAttribute="height" constant="17" id="Fmh-lZ-7vJ"/>
<constraint firstAttribute="width" constant="45" id="psP-EH-mNo"/>
</constraints>
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" state="on" alignment="center" placeholderString="" id="uGx-ek-RAy">
<font key="font" size="11" name="SFUIDisplay-Ultralight"/>
<font key="font" size="11" name="SFUIDisplay-Light"/>
<color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>
</textFieldCell>
@ -105,7 +105,7 @@
</textFieldCell>
</textField>
<textField horizontalHuggingPriority="251" verticalHuggingPriority="750" tag="101" preferredMaxLayoutWidth="110" translatesAutoresizingMaskIntoConstraints="NO" id="vnv-J2-7r1">
<rect key="frame" x="159" y="24" width="114" height="35"/>
<rect key="frame" x="159" y="20" width="114" height="35"/>
<constraints>
<constraint firstAttribute="height" constant="35" id="3WU-de-OQL"/>
<constraint firstAttribute="width" constant="110" id="cQV-gJ-zMz"/>
@ -119,13 +119,13 @@
</subviews>
<constraints>
<constraint firstItem="QUd-7D-q14" firstAttribute="leading" secondItem="qbN-ba-fho" secondAttribute="leading" constant="10" id="0Qz-Ev-efP"/>
<constraint firstItem="6Ea-8S-iTa" firstAttribute="top" secondItem="vnv-J2-7r1" secondAttribute="bottom" id="0Vx-eb-VjR"/>
<constraint firstItem="6Ea-8S-iTa" firstAttribute="top" secondItem="vnv-J2-7r1" secondAttribute="bottom" constant="-5" id="0Vx-eb-VjR"/>
<constraint firstItem="etF-33-bCB" firstAttribute="top" secondItem="qbN-ba-fho" secondAttribute="top" constant="5" id="Lct-kG-usb"/>
<constraint firstItem="L5a-d8-SuC" firstAttribute="leading" secondItem="6Ea-8S-iTa" secondAttribute="trailing" constant="3" id="SLJ-j1-tPj"/>
<constraint firstItem="QUd-7D-q14" firstAttribute="top" secondItem="etF-33-bCB" secondAttribute="bottom" constant="2" id="VO6-Zn-eA3"/>
<constraint firstItem="L5a-d8-SuC" firstAttribute="top" secondItem="vnv-J2-7r1" secondAttribute="bottom" id="YdU-5D-bdv"/>
<constraint firstItem="vnv-J2-7r1" firstAttribute="top" secondItem="qbN-ba-fho" secondAttribute="top" constant="1" id="brT-M2-0IB"/>
<constraint firstAttribute="trailing" secondItem="L5a-d8-SuC" secondAttribute="trailing" constant="8" id="iqR-Tq-tVx"/>
<constraint firstItem="L5a-d8-SuC" firstAttribute="top" secondItem="vnv-J2-7r1" secondAttribute="bottom" constant="-4" id="YdU-5D-bdv"/>
<constraint firstItem="vnv-J2-7r1" firstAttribute="top" secondItem="qbN-ba-fho" secondAttribute="top" constant="5" id="brT-M2-0IB"/>
<constraint firstAttribute="trailing" secondItem="L5a-d8-SuC" secondAttribute="trailing" constant="12" id="iqR-Tq-tVx"/>
<constraint firstItem="etF-33-bCB" firstAttribute="leading" secondItem="qbN-ba-fho" secondAttribute="leading" constant="9" id="ueW-ow-ZRq"/>
<constraint firstAttribute="trailing" secondItem="vnv-J2-7r1" secondAttribute="trailing" constant="8" id="zXo-eA-0bQ"/>
</constraints>

Loading…
Cancel
Save