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
class CommentCell:UITableViewCell { | |
static var shared = CommentCell() | |
var user_image = UIImageView() | |
var username = UILabel() | |
var imageLoader:DownloadImage? | |
var stackView = UIStackView() | |
var sub_comments:[Comments] = [] | |
var bottomConstraint:NSLayoutConstraint? | |
var svBottomAnchor:NSLayoutConstraint? |
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
import Foundation | |
import UIKit | |
import Combine | |
class CommentView: UIView { | |
override init(frame: CGRect) { | |
super.init(frame: frame) | |
sizeToFit() |
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
import Foundation | |
import UIKit | |
class TestTextView: UIViewController, UITextViewDelegate { | |
lazy var textView: UITextView = { | |
let tv = UITextView() | |
tv.text = "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum" | |
tv.backgroundColor = UIColor.lightGray | |
tv.layer.borderColor = UIColor.black.cgColor |
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
protocol HeightForTextView { | |
func heightOfTextView(height: CGFloat) | |
} | |
class CommentCell:UITableViewCell { | |
var delegate:HeightForTextView? | |
override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) { | |
super.init(style: style, reuseIdentifier: reuseIdentifier) |
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
final class Comment: Codable { | |
var id:String? | |
var post_id:String? | |
var username:String? | |
var user_picture:String? | |
var user_id:String? | |
var text:String? | |
var parent_id:String? | |
init(post_id:String, username:String, user_picture:String, user_id:String, text:String, parent_id: String) { |
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
import Foundation | |
import UIKit | |
class AlbumCell: UICollectionViewCell, UITableViewDelegate, UITableViewDataSource { | |
private var myTableView: UITableView! | |
var homeVC = HomeViewController() | |
var model:PostListViewModel? | |
var child:SpinnerViewController? | |
var cellTitle:UILabel? | |
var cellDesc:UILabel? |
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
import UIKit | |
import AVFoundation | |
class VideoPlayerView: UIView { | |
private var playerLayer: AVPlayerLayer? | |
var player:AVPlayer? | |
var isPlaying = false | |
let activityIndicatorView:UIActivityIndicatorView = { | |
let aiv = UIActivityIndicatorView(style: UIActivityIndicatorView.Style.large) |
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
import UIKit | |
import AVFoundation | |
class VideoPlayerView: UIView { | |
private var playerLayer: AVPlayerLayer? | |
var player:AVPlayer? | |
var timer: Timer? | |
let activityIndicatorView:UIActivityIndicatorView = { | |
let aiv = UIActivityIndicatorView(style: UIActivityIndicatorView.Style.large) |
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
import UIKit | |
import AVFoundation | |
class VideoPlayerView: UIView { | |
private var playerLayer: AVPlayerLayer? | |
var player:AVPlayer? | |
let activityIndicatorView:UIActivityIndicatorView = { | |
let aiv = UIActivityIndicatorView(style: UIActivityIndicatorView.Style.large) | |
aiv.startAnimating() |
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
import React, { Component } from "react"; | |
import ReactDOM from "react-dom"; | |
import styled from 'styled-components'; | |
import EditVideoFields from './edit-videoFields' | |
import { ButtonToggle } from "reactstrap"; | |
import { Container, Row, Col } from 'reactstrap'; | |
import axios from 'axios'; | |
import auth0Client from "../../Auth"; | |
import { useAuth0 } from "../../react-auth0-spa"; | |
import {Auth0Context} from "../../react-auth0-spa" |
NewerOlder