Skip to content

Commit d49959f

Browse files
committed
Fix SwiftLint warning
1 parent 0da4f4f commit d49959f

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

Examples/Demo/AppDelegate.swift

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
3232

3333
var window: UIWindow?
3434

35-
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
35+
func application(_ application: UIApplication,
36+
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
3637
return true
3738
}
3839

@@ -51,7 +52,9 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
5152
func applicationWillTerminate(_ application: UIApplication) {
5253
}
5354

54-
func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey: Any] = [:]) -> Bool {
55+
func application(_ app: UIApplication,
56+
open url: URL,
57+
options: [UIApplication.OpenURLOptionsKey: Any] = [:]) -> Bool {
5558
print("-- called application(_:open:options:) --")
5659
return Studyplus.shared.handle(appDelegateUrl: url)
5760
}

Examples/Demo/ViewController.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,10 @@ class ViewController: UIViewController, StudyplusLoginDelegate {
6767
self.resultLabel.text = ""
6868

6969
let recordAmount: StudyplusRecordAmount = StudyplusRecordAmount(amount: 10)
70-
let record: StudyplusRecord = StudyplusRecord(duration: duration, recordedAt: Date(), amount: recordAmount, comment: "Today, I studied like anything.")
70+
let record: StudyplusRecord = StudyplusRecord(duration: duration,
71+
recordedAt: Date(),
72+
amount: recordAmount,
73+
comment: "Today, I studied like anything.")
7174

7275
Studyplus.shared.post(studyRecord: record, success: {
7376

0 commit comments

Comments
 (0)