Swiftpack.co - JosephDuffy/YetiiLiib as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by JosephDuffy.
JosephDuffy/YetiiLiib v0.6.1
A library of iOS views and extensions, used within Yetii apps
⭐️ 1
🕓 2 years ago
iOS
.package(url: "https://github.com/JosephDuffy/YetiiLiib.git", from: "v0.6.1")

YetiiLiib

YetiiLiib is a relatively small project which contains code that is shared across various of Yetii's apps.

Features

  • Boilerplate "About" screen, displaying the app's icon, a short message, and the names of people to be thanked, including a link to their Twitter
  • "More Apps" screen, allowing for all apps by a single developer to be displayed to the user and linked to the App Store, allowing for cross promotion
  • A utility to apply the iOS 7 icon rounding mask to any image, such as an app icon. Rounding is performed on-the-fly and uses Apple's own rounding mask SVG
  • Convenience classes for boilerplate UITableViewCells:
    • Basic
    • Subtitle
    • Right Detail
    • Right Detail and Subtitle

Version Support

YetiiLiib supports iOS 7.0+, although the majority of the testing is performed on iOS 8.0+ (due to simulator limitations). Due to this, you will see some compilers warnings when compiling the framework. These can be ignored.

Installation

iOS 8.0+

When using iOS 8.0+, Carthage may be used. To use Carthage, add the following to your Cartfile:

github "YetiiNet/YetiiLiib"

iOS 7.0+

To support iOS 7, you must include the source files directly. This is done most easily using CocoaSeeds, with the following in your Seedfile:

github "YetiiNet/YetiiLiib", "master", :files => "YetiiLiib/**.{swift,xcassets,xib}"

iOS 9 Considerations

When loading the list of apps by a provided developer (see the OtherAppsTableViewController.swift file), the initial load is performed over HTTPS. However, to load the app icons, HTTP is used. To enable the loading of icons you will need to add the following to your Info.plist file:

<dict>
	<key>NSExceptionDomains</key>
	<dict>
		<key>mzstatic.com</key>
		<dict>
			<key>NSIncludesSubdomains</key>
			<true/>
			<key>NSExceptionAllowsInsecureHTTPLoads</key>
			<true/>
		</dict>
	</dict>
</dict>
</plist>

GitHub

link
Stars: 1
Last commit: 2 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

0.2.2
8 years ago

Updated App Store URL generation

Fixed error when loading app store from generated URLs Moved logic for generating App Store URL to the AppMetaData struct Improved documentation around App Store URLs

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics