-
Notifications
You must be signed in to change notification settings - Fork 822
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
52 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 17 additions & 25 deletions
42
Tests/Fixtures/TestProject/IMessage MessagesExtension/MessagesViewController.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,71 +1,63 @@ | ||
// | ||
// MessagesViewController.swift | ||
// IMessage MessagesExtension | ||
// | ||
// Created by Yonas Kolb on 26/6/18. | ||
// | ||
|
||
import UIKit | ||
import Messages | ||
import UIKit | ||
|
||
class MessagesViewController: MSMessagesAppViewController { | ||
|
||
override func viewDidLoad() { | ||
super.viewDidLoad() | ||
// Do any additional setup after loading the view. | ||
} | ||
|
||
override func didReceiveMemoryWarning() { | ||
super.didReceiveMemoryWarning() | ||
// Dispose of any resources that can be recreated. | ||
} | ||
|
||
// MARK: - Conversation Handling | ||
|
||
override func willBecomeActive(with conversation: MSConversation) { | ||
// Called when the extension is about to move from the inactive to active state. | ||
// This will happen when the extension is about to present UI. | ||
|
||
// Use this method to configure the extension and restore previously stored state. | ||
} | ||
|
||
override func didResignActive(with conversation: MSConversation) { | ||
// Called when the extension is about to move from the active to inactive state. | ||
// This will happen when the user dissmises the extension, changes to a different | ||
// conversation or quits Messages. | ||
|
||
// Use this method to release shared resources, save user data, invalidate timers, | ||
// and store enough state information to restore your extension to its current state | ||
// in case it is terminated later. | ||
} | ||
|
||
override func didReceive(_ message: MSMessage, conversation: MSConversation) { | ||
// Called when a message arrives that was generated by another instance of this | ||
// extension on a remote device. | ||
|
||
// Use this method to trigger UI updates in response to the message. | ||
} | ||
|
||
override func didStartSending(_ message: MSMessage, conversation: MSConversation) { | ||
// Called when the user taps the send button. | ||
} | ||
|
||
override func didCancelSending(_ message: MSMessage, conversation: MSConversation) { | ||
// Called when the user deletes the message without sending it. | ||
|
||
// Use this to clean up state related to the deleted message. | ||
} | ||
|
||
override func willTransition(to presentationStyle: MSMessagesAppPresentationStyle) { | ||
// Called before the extension transitions to a new presentation style. | ||
|
||
// Use this method to prepare for the change in presentation style. | ||
} | ||
|
||
override func didTransition(to presentationStyle: MSMessagesAppPresentationStyle) { | ||
// Called after the extension transitions to a new presentation style. | ||
|
||
// Use this method to finalize any behaviors associated with the change in presentation style. | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters