Code Monkey home page Code Monkey logo

youtube-ios's Introduction

Youtube iOS Template

License Swift 3 Twitter: @aslanyanhaik

Youtube iOS Template is developed by Haik Aslanyan and written in Swift 3.

Purpose of this repo is to show how ViewControllers can be managed.

Screenshot of Youtube iOS Template

Getting Started

All extra views are located in Navigation Controller and Main View Controller in storyboard.

Screenshot of extra views

Compatibility

This project is written in Swift 3.0 and requires Xcode 8.2 or newer to build and run.

Youtube iOS Template is compatible with iOS 9.1+.

Author

License

Copyright 2017 Haik Aslanyan.

Licensed under MIT License: https://opensource.org/licenses/MIT

youtube-ios's People

Contributors

albinekcom avatar aslanyanhaik avatar lewissk avatar rrulin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

youtube-ios's Issues

Video Player Covers tab bar items when minimized

Hello! I'm using the normal UITabBarController in a storyboard. The video player swipe down works fine but it covers the tab bar items in the region and does not allow them to be selected.
https://www.dropbox.com/s/3evuehsevj1t5vf/Screen%20Shot%202017-01-30%20at%201.01.20%20PM.png?dl=0
In the screenshot in the link above, the "Live" and "Me" tabs are not selectable when the video player is in minimised state. Plus I want the minimised player to always appear above the Tab bar. Please, How do I fix this?

Application Lifecycle Question

Hello! Thanks for the fantastic app.

I have a question about the way the application lifecycle works for the tabs.

When a new tab is clicked, are any of the lifecycle methods invoked (viewDidAppear, viewWillAppear, viewWillLoad)? I know they are invoked when the app is first run, but I'm trying to load new data before a tab is selected (ie in viewWillAppear or viewDidLoad), but none of the methods are running when I select a tab.

Thank you!

Layout

Hi
When i run the app on iphone 8 the layout is very good but when i run the app on iphone 5s the layout is not that good. Its moved so much to the left edge. Can you fix that please.

Build Failed

Tried to run the project on xCode,
i got the same below error multiple times.

'default' label can only appear inside a 'switch' statement expected member name following '.'

errors building with carthage...

*** Building scheme "YouTubePlayer" in YouTubePlayer.xcworkspace
/usr/bin/xcrun xcodebuild -workspace /Users/Shared/xxxx/frontend/apps/ios/xxxx/xxxxx/Carthage/Checkouts/Swift-YouTube-Player/YouTubePlayer.xcworkspace -scheme YouTubePlayer -configuration Release -sdk iphoneos ONLY_ACTIVE_ARCH=NO BITCODE_GENERATION_MODE=bitcode CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES clean build2016-11-29 01:28:19.979 xcodebuild[54330:9187692] [MT] PluginLoading: Required plug-in compatibility UUID DA4FDFD8-C509-4D8B-8B55-84A7B66AE701 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/Alcatraz.xcplugin' not present in DVTPlugInCompatibilityUUIDs
Build settings from command line:
    BITCODE_GENERATION_MODE = bitcode
    CARTHAGE = YES
    CODE_SIGN_IDENTITY =
    CODE_SIGNING_REQUIRED = NO
    ONLY_ACTIVE_ARCH = NO
    SDKROOT = iphoneos10.1

=== CLEAN TARGET YouTubePlayer OF PROJECT YouTubePlayer WITH CONFIGURATION Release ===

Check dependencies
“Use Legacy Swift Language Version” (SWIFT_VERSION) is required to be configured correctly for targets which use Swift. Use the [Edit > Convert > To Current Swift Syntax…] menu to choose a Swift version or use the Build Settings editor to configure the build setting directly.
“Use Legacy Swift Language Version” (SWIFT_VERSION) is required to be configured correctly for targets which use Swift. Use the [Edit > Convert > To Current Swift Syntax…] menu to choose a Swift version or use the Build Settings editor to configure the build setting directly.
warning: no umbrella header found for target 'YouTubePlayer', module map will not be generated

** CLEAN FAILED **


The following build commands failed:
	Check dependencies
(1 failure)
=== BUILD TARGET YouTubePlayer OF PROJECT YouTubePlayer WITH CONFIGURATION Release ===

Check dependencies
“Use Legacy Swift Language Version” (SWIFT_VERSION) is required to be configured correctly for targets which use Swift. Use the [Edit > Convert > To Current Swift Syntax…] menu to choose a Swift version or use the Build Settings editor to configure the build setting directly.
“Use Legacy Swift Language Version” (SWIFT_VERSION) is required to be configured correctly for targets which use Swift. Use the [Edit > Convert > To Current Swift Syntax…] menu to choose a Swift version or use the Build Settings editor to configure the build setting directly.
warning: no umbrella header found for target 'YouTubePlayer', module map will not be generated

** BUILD FAILED **


The following build commands failed:
	Check dependencies
(1 failure)
A shell task (/usr/bin/xcrun xcodebuild -workspace /Users/Shared/xna/frontend/apps/ios/loqootv/LoQooTV/Carthage/Checkouts/Swift-YouTube-Player/YouTubePlayer.xcworkspace -scheme YouTubePlayer -configuration Release -sdk iphoneos ONLY_ACTIVE_ARCH=NO BITCODE_GENERATION_MODE=bitcode CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES clean build) failed with exit code 65:
2016-11-29 01:28:19.979 xcodebuild[54330:9187692] [MT] PluginLoading: Required plug-in compatibility UUID DA4FDFD8-C509-4D8B-8B55-84A7B66AE701 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/Alcatraz.xcplugin' not present in DVTPlugInCompatibilityUUIDs
** CLEAN FAILED **


The following build commands failed:
	Check dependencies
(1 failure)
** BUILD FAILED **


The following build commands failed:
	Check dependencies
(1 failure)

AVPlayerLayer frame doesn't fit into UIView for video player

Hello!. I'm trying to replicate this in my app I got the minimising feature right but couldn't get AVPlayerPlayer to fit into the UIView for a video player in my code, I have set this playerLayer.frame = self.videoPlayerView.frame self.videoPlayerView.layer.addSublayer(playerLayer) but it still not inside of it. Where in the code could I be getting it wrong? It's just a thin rect at the middle of the screen as shown in the screenshot.
screen shot 2016-10-21 at 10 10 59 am

How to change Navigation Bar to Tab Bar?

Hi i've created UITabBarController for change main views. However when i minimized player view i can't touch tabbar's some buttons which in right side tabbar. I know player comes top of tabbar. How can i fix it?

Auto layouts for view controllers are Not Working

I am Using this Library like tab bar controller with Different view controllers, When I give constraints for controllers in other view controllers I am not getting the exact Appearnce of that controllers .

Fullscreen

Are you going to support video play in fullscreen when rotate to landscape?

error

Why I open the project , it comes so many errors

Programmatically Changing Tab

I'm trying to change the tab programmatically when a table view cell is being tapped

This is my current code:
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath)
{
let vc = MainViewController()
vc.didSelectItem(atIndex: 2)
}

When I do this, the app crashes in the MainViewController in the customization() method on the View Controller init. (crashes when setting the storyboard.

If I set self.viewsAreInitialized to true before I programmatically select the Item, the app crashes in TabBar.swift on the highlightItem function.

Is there a better way I can programmatically change the tab from one of the view controllers?

Navigation Right bar button items not hiding

Is there any way to remove navigation bar button items on push to next View controller i.e (table view segue navigation) and add different set of navigation bar button items with different actions.

Signing Error

Showing Recent Messages
No account for team "P6GDVV24N5". (Add a new account in the Accounts preference pane or verify that your accounts have valid credentials.)

It is showing me this error how to fix this?

Domain where images and other information is pulled from is down

.json files on the domain http://mexonis.com are unavailable as the domain is down. These URL's are found in GlobalVariables.swift:

home.json
more.json
subscriptions.json
profile.json
video.json

Good alternative might be to store those as Gist's

For those who know what the content of the json files were, can you post them here or in a gist?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.