Skip to content

Commit

Permalink
Use a gear icon for the settings button on ios 13
Browse files Browse the repository at this point in the history
  • Loading branch information
tbodt committed Oct 26, 2019
1 parent 3ef1322 commit 7cd6f97
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
<outlet property="controlKey" destination="W9v-cj-FWz" id="c9i-VC-j7f"/>
<outlet property="escapeKey" destination="IPm-l0-f25" id="QBn-lt-GPd"/>
<outlet property="hideKeyboardButton" destination="7qw-ie-p4d" id="n5f-XX-i98"/>
<outlet property="infoButton" destination="5dl-UV-6qh" id="jaF-Xd-IYp"/>
<outlet property="pasteButton" destination="hmm-tv-z35" id="mgi-xs-C8r"/>
<outlet property="tabKey" destination="cJt-oG-BnW" id="YaE-o4-lKm"/>
<outlet property="termView" destination="FQi-r8-odu" id="QIa-yI-fmG"/>
Expand Down
2 changes: 2 additions & 0 deletions app/TerminalViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ @interface TerminalViewController () <UIGestureRecognizerDelegate>
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *barTrailing;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *barButtonWidth;

@property (weak, nonatomic) IBOutlet UIButton *infoButton;
@property (weak, nonatomic) IBOutlet UIButton *pasteButton;
@property (weak, nonatomic) IBOutlet UIButton *hideKeyboardButton;

Expand Down Expand Up @@ -71,6 +72,7 @@ - (void)viewDidLoad {

// SF Symbols is cool
if (@available(iOS 13, *)) {
[self.infoButton setImage:[UIImage systemImageNamed:@"gear"] forState:UIControlStateNormal];
[self.pasteButton setImage:[UIImage systemImageNamed:@"doc.on.clipboard"] forState:UIControlStateNormal];
[self.hideKeyboardButton setImage:[UIImage systemImageNamed:@"keyboard.chevron.compact.down"] forState:UIControlStateNormal];

Expand Down

0 comments on commit 7cd6f97

Please sign in to comment.