Browse Source

💄 expand general section in preferences

master
lillian rose winter 6 months ago
parent
commit
9d24598579
2 changed files with 24 additions and 0 deletions
  1. +10
    -0
      hanahakiprefs/HANARootListController.m
  2. +14
    -0
      hanahakiprefs/Resources/Root.plist

+ 10
- 0
hanahakiprefs/HANARootListController.m View File

@@ -27,4 +27,14 @@
}
}

- (void)openReddit {
if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"reddit://"]]) {
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"reddit:///u/lilyshibe"] options:@{} completionHandler:nil];
}

else {
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://reddit.com/u/lilyshibe"]];
}
}

@end

+ 14
- 0
hanahakiprefs/Resources/Root.plist View File

@@ -10,6 +10,12 @@
<key>label</key>
<string>hanahaki</string>
</dict>
<dict>
<key>cell</key>
<string>PSStaticTextCell</string>
<key>label</key>
<string>hanahaki - 2019 lillian rose winter</string>
</dict>
<dict>
<key>cell</key>
<string>PSButtonCell</string>
@@ -18,6 +24,14 @@
<key>label</key>
<string>twitter: @lilyshibe</string>
</dict>
<dict>
<key>cell</key>
<string>PSButtonCell</string>
<key>action</key>
<string>openReddit</string>
<key>label</key>
<string>reddit: u/lilyshibe</string>
</dict>
<dict>
<key>cell</key>
<string>PSGroupCell</string>


Loading…
Cancel
Save