mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-09 06:43:25 +01:00
iOS 13.3.1 limits free developer accounts to 3 apps and app extensions. As a workaround, we now allow up to 3 “active” apps (apps with installed provisioning profiles), as well as additional “inactivate” apps which don’t have any profiles installed, causing them to not count towards the total. Inactive apps cannot be opened until they are activated.
64 lines
1.8 KiB
Swift
64 lines
1.8 KiB
Swift
//
|
|
// MyAppsComponents.swift
|
|
// AltStore
|
|
//
|
|
// Created by Riley Testut on 7/17/19.
|
|
// Copyright © 2019 Riley Testut. All rights reserved.
|
|
//
|
|
|
|
import UIKit
|
|
|
|
class InstalledAppCollectionViewCell: UICollectionViewCell
|
|
{
|
|
@IBOutlet var bannerView: AppBannerView!
|
|
|
|
override func awakeFromNib()
|
|
{
|
|
super.awakeFromNib()
|
|
|
|
self.contentView.autoresizingMask = [.flexibleWidth, .flexibleHeight]
|
|
self.contentView.preservesSuperviewLayoutMargins = true
|
|
}
|
|
}
|
|
|
|
class InstalledAppsCollectionFooterView: UICollectionReusableView
|
|
{
|
|
@IBOutlet var textLabel: UILabel!
|
|
@IBOutlet var button: UIButton!
|
|
}
|
|
|
|
class NoUpdatesCollectionViewCell: UICollectionViewCell
|
|
{
|
|
@IBOutlet var blurView: UIVisualEffectView!
|
|
|
|
override func awakeFromNib()
|
|
{
|
|
super.awakeFromNib()
|
|
|
|
self.contentView.preservesSuperviewLayoutMargins = true
|
|
}
|
|
}
|
|
|
|
class UpdatesCollectionHeaderView: UICollectionReusableView
|
|
{
|
|
let button = PillButton(type: .system)
|
|
|
|
override init(frame: CGRect)
|
|
{
|
|
super.init(frame: frame)
|
|
|
|
self.button.translatesAutoresizingMaskIntoConstraints = false
|
|
self.button.setTitle(">", for: .normal)
|
|
self.addSubview(self.button)
|
|
|
|
NSLayoutConstraint.activate([self.button.trailingAnchor.constraint(equalTo: self.trailingAnchor, constant: -20),
|
|
self.button.topAnchor.constraint(equalTo: self.topAnchor),
|
|
self.button.widthAnchor.constraint(equalToConstant: 50),
|
|
self.button.heightAnchor.constraint(equalToConstant: 26)])
|
|
}
|
|
|
|
required init?(coder aDecoder: NSCoder) {
|
|
fatalError("init(coder:) has not been implemented")
|
|
}
|
|
}
|