youtube iOS app template written in swift 5

Overview

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

Comments
  • Build Failed

    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 '.'

    opened by markantonyz 13
  • Application Lifecycle Question

    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!

    opened by surayashivji 9
  • Programmatically Changing Tab

    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?

    opened by surayashivji 6
  • Domain where images and other information is pulled from is down

    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?

    opened by hbd 4
  • Auto layouts for view controllers are Not Working

    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 .

    enhancement 
    opened by DineshGurrapu 2
  • errors building with carthage...

    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)
    
    opened by sirvon 1
  • AVPlayerLayer frame doesn't fit into UIView for video player

    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

    opened by tobitech 1
  • Video Player Covers tab bar items when minimized

    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?

    opened by tobitech 0
  • Signing Error

    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?

    opened by SakshiSaini17092 0
  • How to change Navigation Bar to Tab Bar?

    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?

    opened by cemalsayin 0
  • Layout

    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.

    opened by Hussamalsh 0
Releases(2.0)
Owner
Henry Aslanyan
iOS biped, computer forensics dabbler. I turn coffee into code...
Henry Aslanyan
🐛 WormTabStrip ViewPager for iOS written in Swift, which gives continuous feedback to the user when scrolling

Worm Tab Strip Worm Tab Strip is inspired by android SmartTabStrip, android view pager like library for iOS written in swift. Basically it was build u

EzimetYusup 176 Dec 13, 2022
A fully customizable container view controller to display a set of ViewControllers in a horizontal scroll view. Written in Swift.

DTPagerController This is a control for iOS written in Swift. DTPagerController is simple to use and easy to customize. Screenshots Default segmented

Tung Vo 290 Nov 13, 2022
Animated top/bottom segmented control written in Swift.

Segmentio Animated top/bottom segmented control written in Swift. Check this project on dribbble. Requirements Xcode 10 iOS 8.x+ Swift 5.0 Installatio

Yalantis 2.4k Jan 9, 2023
RAMAnimatedTabBarController is a Swift UI module library for adding animation to iOS tabbar items and icons. iOS library made by @Ramotion

ANIMATED TAB BAR Swift UI module library for adding animation to iOS tabbar items and icons.

Ramotion 11k Jan 8, 2023
:octocat: AdaptiveController is a 'Progressive Reduction' Swift UI module for adding custom states to Native or Custom iOS UI elements. Swift UI component by @Ramotion

ADAPTIVE TAB BAR 'Progressive Reduction' module for adding custom states to Native or Custom UI elements. We specialize in the designing and coding of

Ramotion 2k Nov 9, 2022
This is a Review posting app that let user find interesting places near them

ColorMatchTabs Inspired by this project on Dribbble Also, read how it was done in our blog Installation CocoaPods pod 'ColorMatchTabs' Carthage github

Yalantis 1.4k Dec 5, 2022
A fun, easy-to-use tab bar navigation controller for iOS.

CircleBar Don’t you, sometimes, miss fun user interfaces? Truth is, we do. Sure, you can't use them in enterprise apps for obvious reasons, but if you

softhaus 786 Dec 25, 2022
A custom tab bar controller for iOS.

ESTabBarController ESTabBarController is a custom tab bar controller for iOS. It has a tab indicator that moves animated along the bar when switching

null 122 Oct 6, 2022
Another UITabBar & UITabBarController (iOS Tab Bar) replacement, but uses Auto Layout for arranging it's views hierarchy.

GGTabBar GGTabBar is a simple UITabBar & UITabBarController replacement that uses Auto Layout for constructing the GUI. I created it for curiosity, bu

Nicolas Goles 157 Sep 26, 2022
Android PagerTabStrip for iOS.

XLPagerTabStrip Made with ❤️ by XMARTLABS. Android PagerTabStrip for iOS! ?? Looking for a SwiftUI version? Check out PagerTabStripView, it's fully wr

xmartlabs 6.8k Jan 3, 2023
Customisable iOS bottom menu works like Tabbar

SSCustomTabMenu Simple customizable iOS bottom menu works like Tabbar, in Swift. Features Simple and customizable iOS Tab Menu items, in Swift. Requir

Simform Solutions 81 Aug 3, 2022
Smooth customizable tabs for iOS apps.

SmoothTab Requirements iOS 11.0+ Swift 5.x Xcode 10+ Installation CocoaPods pod 'SmoothTab' How to use Complete screen To setup and customize the comp

Yervand Saribekyan, iOS Dev 105 Feb 13, 2022
iOS Top Tab Navigation

iOS-Top-Tab-Navigation Good news for all our users out there! Now there are no boundaries to your convenience, you can pass as much words as you want

MindInventory 14 Aug 3, 2022
Aesthetic floating tab bar ––– SwiftUI & Combine ⛓️ Importable via Swift Package Manager 📦

FloatingTabBar An aesthetic floating tab bar made with SwiftUI & Combine importabable via Swift Package Manager ?? Based off BottomBar-SwiftUI Preview

10011.co 135 Jan 8, 2023
Pager is the simplest and best way to implement sliding view controllers in Swift

Pager is the simplest and best way to implement sliding view controllers. Installation Drop in the Spring folder to your Xcode project. Or via CocoaPo

Lucas Oceano 234 Aug 5, 2022
SwipeViewController is a Swift modification of RKSwipeBetweenViewControllers - navigate between pages / ViewControllers

SwipeViewController What is SwipeViewController? SwipeViewController enables you to modify the navigation bar and implement 'Swipe Buttons' that can u

Marek Fořt 657 Dec 6, 2022
Aesthetic floating tab bar ––– SwiftUI & Combine ⛓️ Importable via Swift Package Manager 📦

FloatingTabBar An aesthetic floating tab bar made with SwiftUI & Combine importabable via Swift Package Manager ?? Based off BottomBar-SwiftUI Preview

10011.co 134 Jan 5, 2023
CustomTabBar - A Custom TabBar Built Using Swift

CustomTabBar Thanks to Riccardo Cipolleschi for his awesome tutorial. The TabBar

SM Arif Ahmed 1 Feb 14, 2022
YoutubeKit is a video player that fully supports Youtube IFrame API and YoutubeDataAPI for easily create a Youtube app

YoutubeKit YoutubeKit is a video player that fully supports Youtube IFrame API and YoutubeDataAPI to easily create Youtube applications. Important Ref

Ryo Ishikawa 555 Dec 28, 2022
The front-end of youtube iOS app developed using swift 5

Youtube-Front-end-iOS The front-end of youtube iOS app developed using swift 5 UIs 1)-The UI that corresponds to Home Tab bar "The first View " The fi

null 1 Nov 28, 2021