-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from aschuch/insets
Custom placeholder view insets
- Loading branch information
Showing
5 changed files
with
60 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// | ||
// StatefulPlaceholderView.swift | ||
// Example | ||
// | ||
// Created by Alexander Schuch on 13/04/16. | ||
// Copyright © 2016 Alexander Schuch. All rights reserved. | ||
// | ||
|
||
import UIKit | ||
|
||
public protocol StatefulPlaceholderView { | ||
/// Defines the insets to apply when presented via the `StatefulViewController` | ||
/// Return insets here in order to inset the current placeholder view from the edges | ||
/// of the parent view. | ||
func placeholderViewInsets() -> UIEdgeInsets | ||
} | ||
|
||
extension StatefulPlaceholderView { | ||
|
||
public func placeholderViewInsets() -> UIEdgeInsets { | ||
return UIEdgeInsets() | ||
} | ||
|
||
} |
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