{"id":2180,"url":"https://github.com/Boris-Em/NightView","last_synced_at":"2025-08-02T23:32:10.683Z","repository":{"id":62449042,"uuid":"63029590","full_name":"Boris-Em/NightView","owner":"Boris-Em","description":"Dazzling Nights on iOS. ","archived":false,"fork":false,"pushed_at":"2018-06-02T20:12:09.000Z","size":856,"stargazers_count":162,"open_issues_count":1,"forks_count":12,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-11-26T07:51:39.709Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Boris-Em.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-07-11T02:15:21.000Z","updated_at":"2024-01-04T16:06:05.000Z","dependencies_parsed_at":"2022-11-01T23:18:08.612Z","dependency_job_id":null,"html_url":"https://github.com/Boris-Em/NightView","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Boris-Em%2FNightView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Boris-Em%2FNightView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Boris-Em%2FNightView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Boris-Em%2FNightView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Boris-Em","download_url":"https://codeload.github.com/Boris-Em/NightView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228503141,"owners_count":17930519,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-01-05T20:16:06.788Z","updated_at":"2024-12-06T17:30:48.828Z","avatar_url":"https://github.com/Boris-Em.png","language":"Swift","funding_links":[],"categories":["UI"],"sub_categories":["Other free courses","Font","Other Testing"],"readme":"# NightView\n\n[![Build Status](https://travis-ci.org/Boris-Em/NightView.svg?branch=master)](https://travis-ci.org/Boris-Em/NightView)\n[![Version](https://img.shields.io/cocoapods/v/NightView.svg?style=flat)](http://cocoadocs.org/docsets/NightView)\n[![License](https://img.shields.io/cocoapods/l/NightView.svg?style=flat)](http://cocoadocs.org/docsets/NightView)\n[![Platform](https://img.shields.io/cocoapods/p/NightView.svg?style=flat)](http://cocoadocs.org/docsets/NightView)\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"./.assets/NightView_Banner.jpg\"/\u003e\u003c/p\u003e\t\n\n**NightView** is an open source library that generates beautiful, random, starry skies on iOS.  \n\n## Table of Contents\n\n* [**Project Details**](#project-details)  \n  * [Requirements](#requirements)\n  * [License](#license)\n  * [Support](#support)\n  * [Sample App](#sample-app)\n* [**Getting Started**](#getting-started)\n  * [Installation](#installation)\n  * [Setup](#setup)\n* [**Documentation**](#documentation)\n \n  \n  ## Project Details\nLearn more about the **NightView** project, licensing, support etc.\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"./.assets/NightView_iPhone.jpg\"/\u003e\u003c/p\u003e\n\n### Requirements\n - Requires iOS 7 or later. The sample project is optimized for iOS 9.\n - Requires Automatic Reference Counting (ARC).\n - Optimized for ARM64 Architecture.\n\n### License\nSee the [License](https://github.com/Boris-Em/NightView/blob/master/LICENSE). You are free to make changes and use this in either personal or commercial projects. Attribution is not required, but highly appreciated. A little \"Thanks!\" (or something to that affect) is always welcome. If you use **NightView** in your app, please let us know!\n\n### Support\n[![https://gitter.im/Boris-Em/NightView](https://badges.gitter.im/Boris-Em/NightView.svg)](https://gitter.im/Boris-Em/NightView?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)  \n\nJoin us on gitter if you have any question!\n\n### Sample App\nThe iOS Sample App included with this project demonstrates one way to correctly setup and use **NightView**. It also offers the possibility to customize the view within the app.\n\n## Getting Started\nIt only takes a few simple steps to install and setup **NightView** to your project.\n\n###Installation\nThe easiest way to install **NightView** is to use \u003ca href=\"http://cocoapods.org/\" target=\"_blank\"\u003eCocoaPods\u003c/a\u003e. To do so, simply add the following line to your `Podfile`:\n\t\u003cpre\u003e\u003ccode\u003epod 'NightView'\u003c/code\u003e\u003c/pre\u003e\n\t\nThe other way to install **NightView**, is to drag and drop the *NightView* folder into your Xcode project. When you do so, make sure to check the \"*Copy items into destination group's folder*\" box.\n\n### Setup\n**NightView** is a simple UIView subclass. It can be initialized with Interface Builder, or programatically.\n \n **Interface Builder Initialization**  \n 1 - Drag a `UIView` to your `UIViewController`.  \n 2 - Change the class of the new `UIView` to `NightView`.  \n 3 - Select the `NightView` and open the Attributes Inspector. Most of the customizable properties can easily be set from the Attributes Inspector. The Sample App demonstrates this capability.\n \n **Programmatical Initialization**  \n Here is an example illustrating how to initialize a NightView instance programmatically:\n\n ```swift\n let nightView = NightView(frame: CGRectMake(0.0, 0.0, 200.0, 200.0))\n view.addSubview(nightView)\n ```\n \n## Documentation\nAll of the methods and properties available for **NightView** are documented below.\n\n##### `numberOfPointsForStar`  \nThe number of points for each star. For example, setting this property to 1, means that there will be 1 star for every point in the view. A greater number means less stars within the view. *Defaults to 10000.0.*\n\n##### `starSize`  \nThe size of the stars in points. Note that setting `starSizeMinRandomizer` and `starSizeMaxRandomizer` will also influence the size of stars. *Defaults to 5.0.*\n\n##### `starColor`  \nThe color of the stars. *Defaults to white.*\n\n##### `starSizeMinRandomizer`  \nThe size of the stars is randomized within the `starSize` value. This property sets the minimum percent by which the stars' size could be changed. For example, a value of 50.0 means that the minimum size of a star will be 50% of the `starSize` property. *Defaults to 50.0.*\n\n##### `starSizeMaxRandomizer`  \nThe size of the stars is randomized within the `starSize` value. This property sets the maximum percent by which the stars' size could be changed. For example, a value of 150.0 means that the maximum size of a star will be 150% of the `starSize` property. *Defaults to 150.0.*  \n\n##### `minStarOpacity`  \nThe stars are drawn with a smaller opacity at the bottom of the view than at the top. This property sets the minimum opacity for the lower stars. Note that the stars at the top of the view will always have an opacity of 1.0. *Defaults to 0.5.*\n\n##### `glowingIntensity`  \nThe intensity of the glowing of the stars, from 0 to 1. If set to 0, the stars will not glow. *Defaults to 0.5.*\n\n##### `glowingDuration`  \nThe duration in seconds at which the stars glow. *Defaults to 2.0.*\n\n##### `starType`  \nThe type of stars to be drawn. *Defaults to `.Round`.*  \n\u003cp align=\"center\"\u003e\u003cimg src=\"./.assets/NightView_Stars.jpg\"/\u003e\n\n##### `reload()`  \nReloads the **NightView** instance, redrawing all of the stars.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBoris-Em%2FNightView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FBoris-Em%2FNightView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBoris-Em%2FNightView/lists"}